Assembly.ImageRuntimeVersion Property

Definition

Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.

C#
public virtual string ImageRuntimeVersion { get; }
C#
[System.Runtime.InteropServices.ComVisible(false)]
public virtual string ImageRuntimeVersion { get; }

Property Value

The CLR version folder name. This is not a full path.

Attributes

Remarks

For example, the value for the .NET Framework version 1.1 would be v1.1.4322. The binary files for that version would be located in the path %windir%\Microsoft.NET\Framework\v1.1.4322.

By default, ImageRuntimeVersion is set to the version of the CLR used to build the assembly. However, it might have been set to another value at compile time.

Applies to

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.5, 1.6, 2.0, 2.1