Conditional macros in visual studio 2010 property manager

The property manager allows you to have different sets of properties for different configurations - for example, release and debugging.

However, this still means that you need to manually assign each property file to each configuration.

Is there any method for automatically assigning a set of properties to a project based on some parameters (for example, configuration or platform).

case study: I ​​have a solution with many sub-projects. these projects depend on various external libraries. for each external library I have a .props file with the corresponding directories and other parameters (including lib, dll ...)

In some cases, directory names can be easily constructed using default macros such as $ (Configuration), $ (Platform), etc. However, some libraries have a less standard \ consistent naming convention. for these cases, I create a .props file that is specific to the configuration (Debug \ Release), but this requires assigning manfully for each project that is tedious and error prone.

+3
source share
2 answers

, , , . , . , MSBuild ++ IDE. MSBuild, , IDE, , , . . , pre-MSBuild VCProjects...

+1

VBA / .

-1

All Articles