Using Visual Studio project properties effectively for multiple projects and configurations

后端 未结 6 1251
清酒与你
清酒与你 2020-12-02 03:47

I have always used Visual Studios built in GUI support for configuring my projects, often using property sheets so that several projects will use a common set.

One o

6条回答
  •  抹茶落季
    2020-12-02 04:44

    It is possible to create a separate property sheet for each configuration. To do this:

    1. Create a configuration-specific property sheet
    2. Open the Property Manager
    3. Right click the configuration (not the project) that you would like to modify
    4. Click "Add Existing Property Sheet" and add your sheet

    This relieves you from inserting conditions into a single sheet for multiple configurations. If you have some common attributes that you would like to share between configurations, then create a hierarchy. The top sheet can be used in all configurations and the nested sheets will only contain the configuration-specific attribut

提交回复
热议问题