Visual Studio 2015:无法创建新的空项目 C++
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31557329/
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
Visual Studio 2015: Can't create a new empty project c++
提问by Crowning
I recently got the new version of Visual Studio and I can't seem to find how to create an empty project for C++. The options seem to be only C# and Basic.
我最近获得了新版本的 Visual Studio,但似乎找不到如何为 C++ 创建一个空项目。选项似乎只有 C# 和 Basic。
回答by Bogdan Gavril MSFT
The default (typical) installation of Visual Studio 2015 no longer contains the C++ compiler and tools. This was a very popular ask from the community as many developers do not want the footprint C++ brings.
Visual Studio 2015 的默认(典型)安装不再包含 C++ 编译器和工具。这是来自社区的一个非常受欢迎的问题,因为许多开发人员不希望 C++ 带来的足迹。
If you go and try to uninstall Visual Studio 2015, the installer screen will pop up and you'll see a button named "Modify". This will change your current installation. Do a custom install and pick the C++ features / libraries that you require.
如果您尝试卸载 Visual Studio 2015,安装程序屏幕将弹出,您将看到一个名为“修改”的按钮。这将更改您当前的安装。进行自定义安装并选择您需要的 C++ 功能/库。
As far as I know, most editions have C++ support, including Express for Windows, Express for Desktop and the popular Community edition.
据我所知,大多数版本都支持 C++,包括 Windows 版 Express、桌面版 Express 和流行的社区版。
回答by Александр Македонский
Try to open VS with Admin's rights. I tried it, and it works!
尝试使用管理员权限打开 VS。我试过了,它有效!