Summary
Gets the name of the target being executed.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- TargetFunctions
Syntax
[Function("get-current-target")]
public string GetCurrentTarget()
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Return Value
Type | Description |
---|---|
string |
A string that contains the name of the target
being executed.
|