Visual studio 当我使用VS 2017时,与VS 2010相关的MSBuild给出错误 我试图用MSBug构建一个C++项目。我使用的MSBuild来自安装在我的计算机中的Visual Studio 2017 Community edition。我使用CMake 3.8生成Visual Studio项目文件,“Visual Studio 15 2017 Win64”生成器。我使用下面的调用构建命令提示符 msbuild /p:Platform=x64 ALL_BUILD.vcxproj

Visual studio 当我使用VS 2017时,与VS 2010相关的MSBuild给出错误 我试图用MSBug构建一个C++项目。我使用的MSBuild来自安装在我的计算机中的Visual Studio 2017 Community edition。我使用CMake 3.8生成Visual Studio项目文件,“Visual Studio 15 2017 Win64”生成器。我使用下面的调用构建命令提示符 msbuild /p:Platform=x64 ALL_BUILD.vcxproj,visual-studio,cmake,visual-studio-2017,Visual Studio,Cmake,Visual Studio 2017,这会给我错误信息: error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be found. To build using the v100 build tools, please install Visual Studio 2010 build tools. Alternatively, you may upgrade to the cu

这会给我错误信息:

    error MSB8020: The build tools for Visual Studio 2010 (Platform Toolset = 'v100') cannot be 
    found.
    To build using the v100 build tools, please install Visual Studio 2010 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 "Retarget solution".
当我删除“/p:Platform=x64”开关时,错误消失了。
从其他问题来看,这似乎与VisualStudio的2010版有关。我所拥有的只是Visual Studio 2017。我错过了什么?“/p:Platform=x64”开关是否适用于Visual Studio 2017中的MSBuild?我使用的是Windows 10 x64。

是否有可能引用的库取决于工具集v100?@bl4kh4k,我使用的是Qt 5.9.1,从Qt网站上看,没有关于他们使用哪个版本的Visual Studio来实现这个特定的Qt版本的信息。我认为v100是2010年。尝试安装C++重新分发2010的64位版本,然后重新编译.@ BL4KH4K,我仍然得到相同的错误消息。这有帮助吗?指定主机=x64时?