NAnt SDK Documentation - v0.92

Project Constructor (String, Level, Int32)

Initializes a new Project class with the given source, message threshold and indentation level.

[Visual Basic]
Overloads Public Sub New( _
   ByVal uriOrFilePath As String, _
   ByVal threshold As Level, _
   ByVal indentLevel As Integer _
)
[C#]
public Project(
   string uriOrFilePath,
   Level threshold,
   int indentLevel
);

Parameters

uriOrFilePath

The full path to the build file.

This can be of any form that Load accepts.

threshold
The message threshold.
indentLevel
The project indentation level.

Remarks

If the source is a uri of form 'file:///path' then use the path part.

See Also

Project Class | NAnt.Core Namespace | Project Constructor Overload List