Freigeben über


ProjectRootElement.Version Property

Gets the version number of this object.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public ReadOnly Property Version As Integer
public int Version { get; }
public:
property int Version {
    int get ();
}
member Version : int with get
function get Version () : int

Property Value

Type: System.Int32
Returns the version number of this object.

Remarks

Compare this version number to a stored version number to determine whether the project XML content has changed, even if the project is saved after the change. An edit may increment the version number more than once, so Version should only be compared to a stored value.

.NET Framework Security

See Also

Reference

ProjectRootElement Class

Microsoft.Build.Construction Namespace