Summary
Checks whether NAnt is running on Windows.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- PlatformFunctions
Syntax
[Function("is-windows")]
public static bool IsWindows()
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Return Value
Type | Description |
---|---|
bool |
true if NAnt is running on Windows;
otherwise, false .
|