operating-system::to-string

Converts the value of the specified operating system to its equivalent string representation.
string operating-system::to-string(operatingSystem)

Parameters

Name Type Description
operatingSystem OperatingSystem The operating system.

Return Value

The string representation of operatingSystem.

Examples

Output string representation of the current operating system.

<echo message="OS=${operating-system::to-string(environment::get-operating-system())}" />

If the operating system is Windows 2000, the output is:

Microsoft Windows NT 5.0.2195.0

Requirements

Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Functions

See Also

  • NAnt.Core.Functions.EnvironmentFunctions.GetOperatingSystem