NAnt SDK Documentation - v0.92

PlatformFunctions.IsWindows Method 

Checks whether NAnt is running on Windows.

[Visual Basic]
<Function(Name:="is-windows")>
Public Shared Function IsWindows() As Boolean
[C#]
[Function(Name="is-windows")]
public static bool IsWindows();

Return Value

true if NAnt is running on Windows; otherwise, false.

See Also

PlatformFunctions Class | NAnt.Core.Functions Namespace