NAnt SDK Documentation - v0.92

FrameworkInfo.ClrVersion Property

Gets the Common Language Runtime version of the framework.

[Visual Basic]
Public ReadOnly Property ClrVersion As Version
[C#]
public System.Version ClrVersion {get;}

Property Value

The Common Language Runtime version of the framework.

Remarks

When ClrVersion is a null reference (Nothing in Visual Basic), the framework is not considered valid.

Exceptions

Exception Type Condition
ArgumentException The framework is not valid.

See Also

FrameworkInfo Class | NAnt.Core Namespace