Visual Studio 2015 中没有控制台应用程序? [英] No console application in Visual Studio 2015?

查看:150
本文介绍了Visual Studio 2015 中没有控制台应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这听起来可能非常愚蠢,但我在 Visual Studio 2015 中找不到控制台应用程序模板.安装后,我点击了自定义并选择了所有内容,这样我就不必去了通过稍后添加文件的麻烦,所以我当然安装了visual c++.但由于某种原因,没有控制台应用程序模板.

I know this might sound extremely dumb, but I can't find the console application template in visual studio 2015. When installed I clicked on custom and selected everything so I wouldn't have to go through the hassle of adding files later on so of course I have visual c++ installed. But for some reason there's no console application template.

有什么想法吗?我使用的是社区版.

Any ideas? I'm using the community edition.

推荐答案

位于Templates->Visual C++->Win32->Win32 Console Application下.

如果您在那里找不到它,则可能意味着您没有安装 Windows SDK.转到控制面板->程序和功能,选择Microsoft Visual Studio Community 2015,右键单击它并选择更改.

If you cannot find it there, it probably means you did not install the Windows SDK. Go to the Control Panel->Programs and Features, select Microsoft Visual Studio Community 2015, right click on it and select Change.

SDK 在可安装功能列表中隐藏得很好.您可以在 Windows 和 Web 开发->通用 Windows 应用程序开发工具下找到它.确保选择了 Windows 10 SDK.默认情况下它不是,我在安装 VS2015 时往往忘记检查它,因为它隐藏得非常好.

The SDK is hidden quite well in the list of installable features. You can find it under Windows and Web Development->Universal Windows App Development Tools. Make sure the Windows 10 SDK is selected. By default it's not and I tend to forget to check it when installing VS2015 because it's so damn well hidden.

这篇关于Visual Studio 2015 中没有控制台应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆