无法将 Visual studio 解决方案升级到 2013

Can't upgrade Visual studio solution to 2013

我不知道这个项目有什么问题,我在一台新电脑上有 Visual Studio 2013 而我从来没有 2012,这是一台干净的电脑。

我用 3DS Max 2015 SDK 制作了一个项目,这是一个干净的项目,但由于某种原因它是为 2012 年制作的(尽管我是用 2013 年制作的)。

所以我更改了项目设置中的工具集,我什至尝试 "upgrade solution",但它仍然停留在 visual studio window.

的 2012 年

很明显,每次我尝试编译时都会弹出。

Error 1 error MSB8020: The build tools for Visual Studio 2012 (Platform Toolset = 'v110') cannot be found. To build using the v110 build tools, please install Visual Studio 2012 build tools. Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Upgrade Solution...".

问题是,如果你用记事本打开项目,你检查项目的工具,它是 2013。

<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Hybrid|x64'">
    <PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <PlatformToolset>v120</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <PlatformToolset>v120</PlatformToolset>

它没有任何意义,它仍然在那里不让我编译,任何关于为什么会这样的建议?我完全不明白为什么会这样,希望我不必安装 2012 版本。

SDK propertySheets 会覆盖此设置,因此无论您在项目中做什么,模板仍会覆盖它。

要更改此设置 - 编辑文件中的版本号:

\maxsdk\ProjectSettings\propertySheetsdsmax.general.project.settings.props

编辑这一行:

<PlatformToolset>v110</PlatformToolset>

给你的平台号,就可以了

我在我自己的一个项目中做了同样的事情,我需要 visual studio 2013,并且 运行 遇到了与您描述的相同的问题。

其他选项是转到“项目”->“重定向解决方案”...