Visual c++ 2010 Express使用错误的工具集

Visual C++ 2010 Express using wrong toolset

本文关键字:错误 工具集 c++ 2010 Express Visual      更新时间:2023-10-16

我的项目有Project > Properties > General > Platform Toolset设置为v100,但是当我试图构建我得到

Microsoft.Cpp.Win32.Targets(511,5): error MSB8008: Specified platform toolset (v110) is   not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

我已经在项目文件中搜索了v110,它不在文件中。我是从Linux来的,Visual Studio的东西让我很头疼。

是否有我可能遗漏的其他设置?

编辑:

我在打开项目时得到这个消息。C:UsersRyanDownloadsCRYENGINE_Build_PC_v3_5_8_2310_freesdkCodeCryEngineCryActionCryActionHeaders.vcxproj : warning : Platform 'x64' referenced in the project file 'CryAction' cannot be found. Please make sure you have it installed under '%VCTargetsPath%Platformsx64'.

Edit2:我想我找到问题了。$(PlatformToolset)宏是v110,我只是不确定如何编辑它。

很久以前我也遇到过类似的问题。我的结论是,这可能是由于vs中的一个bug。我通过创建一个新项目并重新导入所有内容来"解决"它。

检查您是否构建了与您正在查看的相同的项目配置。在General页面的顶部有Configuration > Debug/ReleasePlatform(可以是Win32/x64)组合框。每个项目配置的工具集设置可能不同。

在文本应用程序(notepad++)中打开.vcproj,然后找到声明该版本的所有实例。

任何标记为v1xx或在标签中有单词版本(例如)的内容都需要更改为代表您正在使用的目标版本的形式。

如果它是v141,你想要VS10,那么它需要更改为v101。

希望对你有帮助。