Compartilhar via


ProjectCollection.Version Property

Definition

Gets the file version of the file in which the Engine assembly lies.

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

Property Value

The file version of the assembly file that contains the MSBuild engine.

Remarks

This is the Windows file version (specifically the value of the FileVersion resource), not necessarily the assembly version. If you want the assembly version, use Constants.AssemblyVersion. This is not the ToolsVersion.

Applies to