Visual Studio 2017 c++ win32 控制台项目模板

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45785786/
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 15:40:20  来源:igfitidea点击:

Visual Studio 2017 c++ win32 console project template

c++console-applicationvisual-studio-2017project-template

提问by AleksanderNaumenok

I am on Visual Studio Community 2017 v. 15.3.1 and I can't seem to find Win32 console application or Win32 project. Still have empty c++ project template and Windows Console Application template. On the start page, I still have win 32 console project available, but if I click it, I get a prompt about removing it from the list

我在 Visual Studio Community 2017 v. 15.3.1 上,似乎找不到 Win32 控制台应用程序或 Win32 项目。还有空的 c++ 项目模板和 Windows 控制台应用程序模板。在开始页面上,我仍然有可用的 win 32 控制台项目,但是如果我单击它,我会收到有关将其从列表中删除的提示

EDIT: I have currently installed following Workloads:

编辑:我目前安装了以下工作负载:

  • Universal Windows Platform
  • Net desktop development
  • Desktop development with C++
  • Game Development with C++
  • Visual Studio extensions development I've done no changes to workload configuration, save from adding a few extra components.
  • 通用 Windows 平台
  • 网络桌面开发
  • 使用 C++ 进行桌面开发
  • 使用 C++ 进行游戏开发
  • Visual Studio 扩展开发 除了添加一些额外的组件之外,我没有对工作负载配置进行任何更改。

I've been fiddling with installer for a while but can't figure out which package I need for this. Any suggestions?

我一直在摆弄安装程序一段时间,但无法弄清楚我需要哪个包。有什么建议?

回答by John Wayne

The new updated changed some things. Go to file -> new project -> visual c++ -> windows desktop -> windows desktop wizard -> select whatever you want

新的更新改变了一些事情。转到文件 -> 新项目 -> Visual C++ -> Windows 桌面 -> Windows 桌面向导 -> 选择任何你想要的

If you haven't installed C++ at all (doesn't come by default as mentioned above) look here

如果您根本没有安装 C++(如上所述,默认情况下没有安装)请看这里

回答by del

This seems to work. Credit all goes to the original website! :)
(https://developercommunity.visualstudio.com/content/problem/93159/cant-find-win32-console-application-for-new-projec.html)

这似乎有效。信用全部归于原始网站!:)
( https://developercommunity.visualstudio.com/content/problem/93159/cant-find-win32-console-application-for-new-projec.html)

If you are using Visual Studio 2017, and can't find "win32 console project" after File ->> New ->> Project:
(https://imgur.com/a/3mmgyP3: VS 2017 "New Project" without "win32 console project" )

如果您在使用Visual Studio 2017年,无法找到文件后,“Win32控制台项目” - >>新- >>项目:
https://imgur.com/a/3mmgyP3:2017年VS“新项目”不“ win32 控制台项目")

Go to File ->> New ->> Project ->> Windows Desktop Wizard ->> select "Empty Project"

转到文件 ->> 新建 ->> 项目 ->> Windows 桌面向导 ->> 选择“空项目”

VISUAL STUDIO 2015
(https://imgur.com/a/9H7sHfV: File ->> New ->> Project ->> "Win32 Console Application")

VISUAL STUDIO 2015
https://imgur.com/a/9H7sHfV:文件->>新建->>项目->>“Win32控制台应用程序”)

VISUAL STUDIO 2017
(https://imgur.com/a/5Qqzf1L: File ->> New ->> Project ->> "Windows Desktop Wizard")

VISUAL STUDIO 2017
https://imgur.com/a/5Qqzf1L:文件->>新建->>项目->>“Windows桌面向导”)