ProjectCollection.Version 属性

定义

获取包含 MSBuild 引擎的程序集文件的文件版本。Gets the file version of the assembly file that contains the MSBuild engine.

public:
 static property Version ^ Version { Version ^ get(); };
public static Version Version { get; }
member this.Version : Version
Public Shared ReadOnly Property Version As Version

属性值

包含 MSBuild 引擎的程序集文件的文件版本。The file version of the assembly file that contains the MSBuild engine.

注解

这是 Windows 文件版本(具体来说是 ProductVersion 资源的值),不一定是程序集版本。This is the Windows file version (specifically the value of the ProductVersion resource), which is not necessarily the assembly version. 若要获取程序集版本,请使用 AssemblyVersion。To obtain the assembly version, use Constants.AssemblyVersion.

适用于