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)
Syntax
'Declaration
Public Property ToolsVersion As String
public string ToolsVersion { get; internal set; }
public:
property String^ ToolsVersion {
String^ get ();
internal: void set (String^ value);
}
member ToolsVersion : string with get, internal set
function get ToolsVersion () : String
internal function set ToolsVersion (value : String)
Property Value
Type: System.String
A string representing the version number of the Toolset.
Remarks
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.
Note
To get or set the ToolsVersion attribute on the Project element, use the DefaultToolsVersion property.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.