# operating-system::get-version

[This is preliminary documentation and subject to change.]

Gets a Version object that identifies this operating system.

### Usage

`Version operating-system::get-version(operatingSystem)`

### Parameters

Name | Type | Description
--- | --- | ---
operatingSystem | OperatingSystem | The operating system.

### Return Value

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

### Requirements

Assembly: NAnt.Core (0.85.1932.0)

### See Also

environment::get-operating-system()