ProjectFunctions.

GetName() Method

Summary

Gets the name of the current project.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
ProjectFunctions

Syntax

[Function("get-name")]
public string GetName()

Attributes

Type Description
FunctionAttribute Indicates that the method should be exposed as a function in NAnt build files.

Return Value

Type Description
string The name of the current project, or an empty string if no name is specified in the build file.