C++ 错误 MSB8008:指定的平台工具集 (v120) 未安装或无效

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26100989/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 11:31:19  来源:igfitidea点击:

error MSB8008: Specified platform toolset (v120) is not installed or invalid

c++visual-studio-2010visual-studio

提问by Jose Ramon

I've downloaded a c++ project. I opened the .slnfile and I tried to build the project. I got the following error:

我已经下载了一个 C++ 项目。我打开.sln文件并尝试构建项目。我收到以下错误:

error MSB8008: Specified platform toolset (v120) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

error MSB8008: Specified platform toolset (v120) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

I ve already checked that the platform toolset is set to v120. What is the problem here?

我已经检查过平台工具集是否设置为v120. 这里有什么问题?

回答by herohuyongtao

Either change the platform toolset of your project to v100(as you have installed VS2010) or install VS2013 in order to use v120.

将项目的平台工具集更改为v100(因为您已安装 VS2010)或安装 VS2013 以使用v120.