Gets a Version object that describes the major, minor, build, and revision numbers of the Common Language Runtime.
A Version object.
Output the major version of the CLR.
<echo message="Major version=${version::get-major(environment::get-version())}" />
EnvironmentFunctions Class | NAnt.Core.Functions Namespace