NAnt SDK Documentation - v0.92 |

# Project Members

Project overview

#### Public Instance Constructors

Project | Overloaded. Initializes a new instance of the Project class.

#### Public Instance Properties

BaseDirectory | Gets or sets the base directory used for relative references.
BuildFileLocalName | Gets the path to the build file.
BuildFileUri | Gets the Uri form of the current project definition.
BuildListeners | Gets the build listeners for this project.
BuildTargets | The list of targets to build.
ConfigurationNode | Gets the XmlNode NAnt should use to initialize configuration settings.
CurrentTarget | Gets the current target.
DataTypeReferences | Gets the DataTypeBase instances defined in this project.
DefaultTargetName |
Document | Gets the active Project definition.
FrameworkNeutralProperties | Gets the framework-neutral properties defined in the NAnt configuration file.
Frameworks | Gets a collection of available .NET frameworks.
IndentationLevel | Gets or sets the indendation level of the build output.
IndentationSize | Gets or sets the indentation size of the build output.
NamespaceManager | Gets the XmlNamespaceManager.
PlatformName | Gets the name of the platform on which NAnt is currently running.
ProjectName | Gets the name of the Project.
Properties | Gets the properties defined in this project.
RuntimeFramework | Gets the framework in which NAnt is currently running.
TargetFramework | Gets or sets the framework to use for compilation.
Targets | Gets the targets defined in this project.
Threshold | Gets or sets the default threshold level for build loggers.
Verbose | Gets a value indicating whether tasks should output more build log messages.

#### 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.

#### Public Instance Events

BuildFinished |
BuildStarted |
MessageLogged |
TargetFinished |
TargetStarted |
TaskFinished |
TaskStarted |

#### 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