OperatingSystemFunctions.

GetVersion(OperatingSystem) Method

Summary

Gets a System.Version object that identifies this operating system.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions
Containing Type
OperatingSystemFunctions

Syntax

[Function("get-version")]
public static Version GetVersion(OperatingSystem operatingSystem)

Attributes

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

Parameters

Name Type Description
operatingSystem OperatingSystem The operating system.

Return Value

Type Description
Version A System.Version object that describes the major version, minor version, build, and revision of the operating system.

See Also

  • NAnt.Core.Functions.EnvironmentFunctions.GetOperatingSystem