简体   繁体   English

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

[英]Visual C++ 2010 Express using wrong toolset

My project has Project > Properties > General > Platform Toolset set to v100, however when I try to build I get 我的项目的“ 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.

I have searched the project file for v110 and it is not in the file. 我已经在项目文件中搜索了v110 ,但该文件中没有该文件。 I am coming from Linux and this Visual Studio stuff is being a big headache. 我来自Linux,而Visual Studio的东西令人头疼。

Is there another setting somewhere that I may be missing? 我可能会缺少其他设置吗?

Edit: 编辑:

I am getting this message when opening the project. 打开项目时,我收到此消息。 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: I think I have found the problem. Edit2:我想我已经找到问题了。 The $(PlatformToolset) macro is v110, im just not sure how to edit it yet. $(PlatformToolset)宏是v110,我只是不确定如何编辑它。

I had a similar problem a long time ago. 我很久以前也遇到过类似的问题。 I concluded it was probably due to a bug in VS. 我得出结论,这可能是由于VS中的错误所致。 I 'solved' it by creating a new project, and importing everything again. 我通过创建一个新项目并再次导入所有内容来“解决”它。

Check that you build the same project configuration as you are looking at. 检查您构建的项目配置与所查看的相同。 At the top of the General page there are Configuration > Debug/Release and Platform (can be Win32/x64) comboboxes. 在“ General页面的顶部,有“ Configuration > Debug/ReleasePlatform (可以是Win32 / x64)组合框。 Toolset setting can be different for each project configuration. 每个项目配置的工具集设置可以不同。

Open .vcproj in a text application (Notepad++), then find all instances of that declare the version. 在文本应用程序(Notepad ++)中打开.vcproj,然后查找声明该版本的所有实例。

Anything labeled v1xx or that has the word version in the tag (ie ) will be what needs to be changed to some form representative of the target version you are using. 标记为v1xx或标签中带有单词version的任何内容(即)将需要更改为某种形式,以表示您正在使用的目标版本。

If it has something like v141 and you want VS10 then it needs to be changed to v101. 如果它具有类似v141的内容,并且您想要VS10,则需要将其更改为v101。

Hope that helps. 希望能有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM