Gets the version of the assembly.
Version assemblyname::get-version(assemblyName)
Parameters
Name | Type | Description |
---|---|---|
assemblyName | AssemblyName | The System.Reflection.AssemblyName of the assembly. |
Return Value
The version of the assembly.
Examples
Output the major version of the nunit.framework
assembly
to the build log.
<echo message="${version::get-major(assemblyname::get-version(assemblyname::get-assembly-name('nunit.framework.dll')))}" />
Requirements
- Assembly
- NAnt
.Core .dll - Namespace
-
NAnt
.Core .Functions
See Also
- NAnt.Core.Functions.AssemblyFunctions.GetName(System.Reflection.Assembly)
- NAnt.Core.Functions.VersionFunctions