简体   繁体   English

无法在Visual Studio 2015中加载C项目

[英]Unable to load C Project in Visual Studio 2015

When i try to load my C project in VS 2015,i got this error : 当我尝试在VS 2015中加载我的C项目时,我收到此错误:

"Project cannot be loaded because installation components are missing : please install visual c++ 2015 tools for Windows Desktop". “无法加载项目,因为缺少安装组件:请为Windows桌面安装visual c ++ 2015工具”。

Does somebody know how can i fix it without reinstalling VS2015 ? 有人知道如何在不重新安装VS2015的情况下修复它吗?

To not reinstall Visual Studio which is time consuming, you need to go to File >> New >> Project and then choose Visual C++ folder. 要重新安装耗时的Visual Studio,您需要转到File >> New >> Project ,然后选择Visual C ++文件夹。
There you will find your unavailable project that is saying 在那里你会发现你说的不可用的项目

Install visual C++ 2015 tools for Windows Desktop 为Windows桌面安装Visual C ++ 2015工具

So just click on it and start installing the needed components. 所以只需单击它并开始安装所需的组件。 After the installation has completed, you'll be able to start and write C++ applications for Windows Desktop. 安装完成后,您将能够为Windows桌面启动和编写C ++应用程序。

If the button doesn't show up (it only shows in the log), go to File -> New Project. 如果按钮未显示(仅显示在日志中),请转到文件 - >新建项目。 Under Templates -> Visual C++ , it will show "Install Visual 2015 C++ Tools For Windows Desktop" as if it's one of the possible project templates. 在模板 - > Visual C ++下,它将显示“为Windows桌面安装Visual 2015 C ++工具”,就好像它是可能的项目模板之一。 That'll show the install prompt. 那将显示安装提示。

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

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