[英]Visual C++ 2010 Express using wrong toolset
我的项目的“ 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:\\Users\\Ryan\\Downloads\\CRYENGINE_Build_PC_v3_5_8_2310_freesdk\\Code\\CryEngine\\CryAction\\CryActionHeaders.vcxproj : warning : Platform 'x64' referenced in the project file 'CryAction' cannot be found. Please make sure you have it installed under '%VCTargetsPath%\\Platforms\\x64'.
Edit2:我想我已经找到问题了。 $(PlatformToolset)宏是v110,我只是不确定如何编辑它。
我很久以前也遇到过类似的问题。 我得出结论,这可能是由于VS中的错误所致。 我通过创建一个新项目并再次导入所有内容来“解决”它。
检查您构建的项目配置与所查看的相同。 在“ General
页面的顶部,有“ Configuration > Debug/Release
和Platform
(可以是Win32 / x64)组合框。 每个项目配置的工具集设置可以不同。
在文本应用程序(Notepad ++)中打开.vcproj,然后查找声明该版本的所有实例。
标记为v1xx或标签中带有单词version的任何内容(即)将需要更改为某种形式,以表示您正在使用的目标版本。
如果它具有类似v141的内容,并且您想要VS10,则需要将其更改为v101。
希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.