NAnt SDK Documentation - v0.92 |

# FrameworkFunctions.GetClrVersion Method (String)

Gets the Common Language Runtime version of the specified framework.

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

#### Parameters

framework
  The framework of which the Common Language Runtime version should be returned.

#### Return Value

The Common Language Runtime 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.GetClrVersion Overload List | GetRuntimeFramework | GetTargetFramework