[ACCEPTED]-test if an MSBuild property is defined?-msbuild-propertygroup
Accepted answer
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?
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.