NAnt SDK Documentation - v0.92 |
|
Target.Name Property
The name of the target.
[Visual Basic]
<TaskAttribute(Required:=True, Name:="name", ExpandProperties:=False, ProcessXml:=True), _
StringValidator(AllowEmpty:=False, Expression:="null", ExpressionErrorMessage:="null")>
Public Property Name As
String
[C#]
[TaskAttribute(Required=True, Name="name", ExpandProperties=False, ProcessXml=True)]
[StringValidator(AllowEmpty=False, Expression="null", ExpressionErrorMessage="null")]
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