# 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.85.2478.0)

### See Also

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