NAnt SDK Documentation - v0.92 |

# Target Members

Target overview

#### Public Instance Constructors

Target Constructor | Initializes a new instance of the Target class.

#### Public Instance Properties

Dependencies | A collection of target names that must be executed before this target.
DependsListString | Space separated list of targets that this target depends on.
Description | The description of the target.
Executed | This indicates whether the target has already executed.
IfCondition | If true then the target will be executed; otherwise, skipped. The default is true.
IfDefined | Gets a value indicating whether the target should be executed.
Name | The name of the target.
NamespaceManager (inherited from Element) | Gets or sets the XmlNamespaceManager.
Parent (inherited from Element) | Gets or sets the parent of the element.
Project (inherited from Element) | Gets or sets the Project to which this element belongs.
Properties (inherited from Element) | Gets the properties local to this Element and the Project.
UnlessCondition | Opposite of IfDefined. If false then the target will be executed; otherwise, skipped. The default is false.
UnlessDefined | Gets a value indicating whether the target should NOT be executed.

#### Public Instance Methods

Clone | Creates a shallow copy of the Target.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
Execute | Executes dependent targets first, then the target.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type.
GetLocation (inherited from Element) | Retrieves the location in the build file where the element is defined.
GetType (inherited from Object) | Gets the Type of the current instance.
Initialize (inherited from Element) | Performs default initialization.
Log (inherited from Element) | Overloaded. Logs a message with the given priority.
ToString (inherited from Object) | Returns a String that represents the current Object.

#### See Also

Target Class | NAnt.Core Namespace