[ACCEPTED]-test if an MSBuild property is defined?-msbuild-propertygroup

Accepted answer
Score: 52

There exists common method for overriding 4 properties.

Sample from C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets

   <PropertyGroup>
       <TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">.NETFramework</TargetFrameworkIdentifier>
       <TargetFrameworkVersion Condition=" '$(TargetFrameworkVersion)' == '' ">v4.0</TargetFrameworkVersion>
   </PropertyGroup>

If you will try 3 to get value from $(NeverDefinedProperty) you just get an empty 2 string. Can you describe the problem you 1 want to solve?

More Related questions