NAnt SDK Documentation - v0.92 |

# Project Methods

The methods of the Project class are listed below. For a complete list of Project class members, see the Project Members topic.

#### Public Instance Methods

AttachBuildListeners | Attaches the specified build listeners to the Project.
CreateDataTypeBase |
CreateDefaultLogger | Creates the default IBuildLogger and attaches it to the Project.
CreateTask | Overloaded. Creates a new from the given XmlNode.
DetachBuildListeners | Detaches the currently attached IBuildListener instances from the Project.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
Execute | Overloaded. Executes the default target.
ExpandProperties | Expands a String from known properties.
GetFullPath | Combines the specified path with the BaseDirectory of the Project to form a full path to file or directory.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type.
GetLocation | Returns the Location of the given node in an XML file loaded by NAnt.
GetType (inherited from Object) | Gets the Type of the current instance.
Indent | Increases the IndentationLevel of the Project.
Log | Overloaded. Writes a Project level message to the build log with the given Level.
OnBuildFinished | Dispatches a BuildFinished event to the build listeners for this Project.
OnBuildStarted | Dispatches a BuildStarted event to the build listeners for this Project.
OnMessageLogged | Dispatches a MessageLogged event to the build listeners for this Project.
OnTargetFinished | Dispatches a TargetFinished event to the build listeners for this Project.
OnTargetStarted | Dispatches a TargetStarted event to the build listeners for this Project.
OnTaskFinished | Dispatches the TaskFinished event to the build listeners for this Project.
OnTaskStarted | Dispatches a TaskStarted event to the build listeners for this Project.
Run | Executes the default target and wraps in error handling and time stamping.
TopologicalTargetSort | Topologically sorts a set of targets.
ToString (inherited from Object) | Returns a String that represents the current Object.
Unindent | Decreases the IndentationLevel of the Project.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

Project Class | NAnt.Core Namespace