Summary
Gets a
System.Version
object that describes the major,
minor, build, and revision numbers of the Common Language Runtime.
- Assembly
- NAnt
.Core .dll - Namespace
- NAnt
.Core .Functions - Containing Type
- EnvironmentFunctions
Syntax
[Function("get-version")]
public static Version GetVersion()
Examples
Output the major version of the CLR.
<echo message="Major version=${version::get-major(environment::get-version())}" />
Attributes
Type | Description |
---|---|
FunctionAttribute | Indicates that the method should be exposed as a function in NAnt build files. |
Return Value
Type | Description |
---|---|
Version | A Version object. |