Property Element (MSBuild)
Contains a user defined property name and value. Every property used in an MSBuild project must be specified as a child of a PropertyGroup element.
The following sections describe attributes, child elements, and parent elements.
Condition to be evaluated. For more information, see MSBuild Conditions.
Grouping element for properties.
Property names are limited to ASCII chars only. Property values are referenced in the project by placing the property name between "$(" and ")". For example, $(builddir)\classes would resolve to "build\classes", if the builddir property had the value build. For more information on properties, see MSBuild Properties.
The following code sets the Optimization property to false and the DefaultVersion property to 1.0 if the Version property is empty.
<PropertyGroup> <Optimization>false</Optimization> <DefaultVersion Condition="'$(Version)' == ''" >1.0</DefaultVersion> </PropertyGroup>