version::get-major

[This is preliminary documentation and subject to change.]

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

Usage

version::get-major(version)

Parameters

Name Type Description
version string A string containing the major, minor, build, and revision numbers, where each number is delimited with a period character ('.').

Return Value

The major version number.

Requirements

Assembly: NAnt.Core (0.85.1698.0)