NAnt SDK Documentation - v0.85-nightly-2005-11-09 |
|
Target.Name Property
[This is preliminary documentation and subject to change.]
The name of the target.
[Visual Basic]
<StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null"), _
TaskAttribute(Name:="name", Required:=True, ExpandProperties:=False, ProcessXml:=True)>
Public Property Name As
String
[C#]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
[TaskAttribute(Name="name", Required=True, ExpandProperties=False, ProcessXml=True)]
new public
string Name {get; set;}
Remarks
Hides Name to have Target return the name of target, not the name of XML element - which would always be target
.
Note: Properties are not allowed in the name.
See Also
Target Class | NAnt.Core Namespace