ProjectCollection.Version Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.