ToolsVersion Property

Project.ToolsVersion Property

 

Sets or gets the current version of the Toolset being used by the project.

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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

public string ToolsVersion { get; internal set; }

Property Value

Type: System.String

A string representing the version number of the Toolset.

If the Toolset version is overridden, that value becomes the effective Toolset version. If there is a ToolsVersion attribute on the Project element, then that is the effective Toolset version. Otherwise, the Toolset version is the same as the default Toolset version of the parent engine. When set, ToolsVersion overrides the current Toolset version of the project with the provided value.

For more information about Toolsets, see Standard and Custom Toolset Configurations.

System_CAPS_noteNote

To get or set the ToolsVersion attribute on the Project element, use the DefaultToolsVersion property.

Return to top
Show:
© 2016 Microsoft