version::get-major Function

# version::get-major

Gets the value of the major component of a given version.

### Usage

`int version::get-major(version)`

### Parameters

Name | Type | Description
--- | --- | ---
version | Version | A version.

### Return Value

The major version number.

### Requirements

Assembly: NAnt.Core (0.92.4543.0)

### See Also

assemblyname::get-version() | environment::get-version() | operating-system::get-version()