|-toolsversion:`version`|-tv:`version`|Specifies the version of the Toolset to use to build the project, as the following example shows: `-toolsversion:3.5`<br /><br /> By using this switch, you can build a project and specify a version that differs from the version that's specified in the [Project element (MSBuild)](../msbuild/project-element-msbuild.md). For more information, see [Overriding ToolsVersion settings](../msbuild/overriding-toolsversion-settings.md).<br /><br /> For MSBuild 4.5, you can specify the following values for `version`: 2.0, 3.5, and 4.0. If you specify 4.0, the `VisualStudioVersion` build property specifies which sub-toolset to use. For more information, see the Sub-toolsets section of [Toolset (ToolsVersion)](../msbuild/msbuild-toolset-toolsversion.md).<br /><br /> A Toolset consists of tasks, targets, and tools that are used to build an application. The tools include compilers such as *csc.exe* and *vbc.exe*. For more information about Toolsets, see [Toolset (ToolsVersion)](../msbuild/msbuild-toolset-toolsversion.md), [Standard and custom toolset configurations](../msbuild/standard-and-custom-toolset-configurations.md), and [Multitargeting](../msbuild/msbuild-multitargeting-overview.md). **Note:** The toolset version isn't the same as the target framework, which is the version of the .NET Framework on which a project is built to run. For more information, see [Target framework and target platform](../msbuild/msbuild-target-framework-and-target-platform.md).|
0 commit comments