Summary
Class which provides NAnt functions for retrieving platform information.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Base Types
-
- Object
- FunctionSetBase
graph BT
Type-->Base0["FunctionSetBase"]
click Base0 "/api/NAnt.Core/FunctionSetBase"
Base0-->Base1["Object"]
Type["PlatformFunctions"]
class Type type-node
Syntax
[FunctionSet("platform", "NAnt")]
public class PlatformFunctions : FunctionSetBase
Attributes
Type | Description |
---|---|
FunctionSetAttribute | Indicates that class should be treated as a set of functions. |
Constructors
Name | Summary |
---|---|
PlatformFunctions |
Initializes a new instance of the NAnt.Core.Functions.PlatformFunctions class.
|
Properties
Name | Value | Summary |
---|---|---|
Project | Project |
Gets or sets the
NAnt.Core.FunctionSetBase.Project that this functionset will
reference.
Inherited from FunctionSetBase
|
Methods
Name | Value | Summary |
---|---|---|
GetName |
string |
Gets the name of the platform on which NAnt is running.
|
IsUnix |
bool |
Checks whether NAnt is running on Unix.
static
|
IsWin32 |
bool |
Checks whether NAnt is running on Windows (and not just 32-bit Windows
as the name may lead you to believe).
static
|
IsWindows |
bool |
Checks whether NAnt is running on Windows.
static
|