NAnt SDK Documentation - v0.92

Project.Execute Method (String, Boolean)

Executes a specific target.

[Visual Basic]
Overloads Public Sub Execute( _
   ByVal targetName As String, _
   ByVal forceDependencies As Boolean _
)
[C#]
public void Execute(
   string targetName,
   bool forceDependencies
);

Parameters

targetName
The name of the target to execute.
forceDependencies
Whether dependencies should be forced to execute

Remarks

Global tasks are not executed.

See Also

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