The following code example shows how to set properties based on a condition. In this example, if the value of the CompileConfig property is DEBUG, the Optimization, Obfuscate, and OutputPath properties inside of the PropertyGroup element are set.
|
<PropertyGroup Condition="'$(CompileConfig)' == 'DEBUG'" >
<Optimization>false</Optimization>
<Obfuscate>false</Obfuscate>
<OutputPath>$(OutputPath)\debug</OutputPath>
</PropertyGroup>
|