NAnt SDK Documentation - v0.92

FrameworkFunctions.GetVersion Method (String)

Gets the version of the specified framework.

[Visual Basic]
<Function(Name:="get-version")>
Overloads Public Function GetVersion( _
   ByVal framework As String _
) As Version
[C#]
[Function(Name="get-version")]
public Version GetVersion(
   string framework
);

Parameters

framework
The framework of which the version should be returned.

Return Value

The version of the specified framework.

Exceptions

Exception Type Condition
ArgumentException framework is not a valid framework identifier.

See Also

FrameworkFunctions Class | NAnt.Core.Functions Namespace | FrameworkFunctions.GetVersion Overload List | GetRuntimeFramework | GetTargetFramework