I’m converting a Nant build script to MsBuild.
In Nant I have the following statement to check if a specific build property exists:
To do the same thing in MsBuild you have to use the condition attribute:
In Nant I have the following statement to check if a specific build property exists:
<if test="${property::exists('application.environment')}">
To do the same thing in MsBuild you have to use the condition attribute:
<PropertyGroup>
<ApplicationEnvironment Condition="'$(ApplicationEnvironment)' == ''">UAT</ApplicationEnvironment>
</PropertyGroup>