NAnt SDK Documentation - v0.92 |

# Project.CreateTask Method (XmlNode, Target)

Creates a new Task from the given XmlNode within a Target.

[Visual Basic]
Overloads Public Function CreateTask( _
ByVal taskNode As XmlNode, _
ByVal target As Target _
) As Task
[C#]
public Task CreateTask(
XmlNode taskNode,
Target target
);

#### Parameters

taskNode
  The Task definition.
target
  The owner Target.

#### Return Value

The new Task instance.

#### See Also

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