Assembly.ImageRuntimeVersion Assembly.ImageRuntimeVersion Assembly.ImageRuntimeVersion Assembly.ImageRuntimeVersion Property

定义

获取表示公共语言运行时 (CLR) 的版本的字符串,该信息保存在包含清单的文件中。Gets a string representing the version of the common language runtime (CLR) saved in the file containing the manifest.

public:
 virtual property System::String ^ ImageRuntimeVersion { System::String ^ get(); };
[System.Runtime.InteropServices.ComVisible(false)]
public virtual string ImageRuntimeVersion { get; }
member this.ImageRuntimeVersion : string
Public Overridable ReadOnly Property ImageRuntimeVersion As String

属性值

CLR 版本的文件夹名。The CLR version folder name. 这不是完整路径。This is not a full path.

注解

例如, .NET Framework 版本1.1 的值为1.1.4322。For example, the value for the .NET Framework version 1.1 would be v1.1.4322. 该版本的二进制文件将位于%windir%\Microsoft.NET\Framework\v1.1.4322. 路径中。The binary files for that version would be located in the path %windir%\Microsoft.NET\Framework\v1.1.4322.

默认情况下ImageRuntimeVersion , 设置为用于生成程序集的 CLR 版本。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.

适用于