NAnt SDK Documentation - v0.92 |

# ProjectFunctions.GetDefaultTarget Method

Gets the name of the target that will be executed when no other build targets are specified.

[Visual Basic]
<Function(Name:="get-default-target")>
Public Function GetDefaultTarget() As String
[C#]
[Function(Name="get-default-target")]
public string GetDefaultTarget();

#### Return Value

The name of the target that will be executed when no other build targets are specified, or an empty String if no default target is defined for the project.

#### See Also

ProjectFunctions Class | NAnt.Core.Functions Namespace