Property Element (MSBuild)
.NET Framework 2.0
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.
<Property Condition="'String A' == 'String B'">
Property Value
</Property>
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| Condition | Optional attribute. Condition to be evaluated. For more information, see MSBuild Conditions. |
Child Elements
None.
Parent Elements
| Element | Description |
|---|---|
| Grouping element for properties. |
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.