Target.

Name Property

Summary

The name of the target.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Containing Type
Target

Syntax

[TaskAttribute("name", Required = true, ExpandProperties = false)]
[StringValidator(AllowEmpty = false)]
public string Name { get; set; }

Remarks

Hides NAnt.Core.Element.Name to have NAnt.Core.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.

Attributes

Type Description
TaskAttributeAttribute Indicates that property should be treated as a XML attribute for the task.
StringValidatorAttribute Used to indicate whether a string property should allow an empty string value or not.

Value

Type Description
string