Visual Studio社区2015中的C ++项目如何才能包含通用应用程序? [英] How come C++ project in Visual Studio Community 2015 only contain Universal Apps?

查看:271
本文介绍了Visual Studio社区2015中的C ++项目如何才能包含通用应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,让我告诉你我有什么..


  1. Visual Studio社区2015安装与定制如下。



    我希望子路径我的文件>新建>项目>已安装>模板> Visual C ++> Windows包含Visual C#和Basic下面(通用,Windows 8,经典桌面)的所有三个项目。更具体地说,我希望我的Visual C ++> Windows看起来像这样..



    我知道我可以代码Win32 / C ++使用通用Windows应用程序模板,但Win32支持是有限的,它带有一堆.Net的东西,我不需要。请不要误会我,我喜欢.Net和WPF和我自己曾经是一个C#程序员(特别是WinForm),我认为.Net是未来的Windows开发,但现在我需要从空开始项目与Win32 / C ++支持。



    这个问题是否仅限于社区版本? (任何人试过VS2015 Pro / Ent?请让我知道)



    编辑:
    绝对不能解决这个问题..但我发现我可以规避问题如下:



    这是它的工作原理。而不是在安装> Visual C ++> Windows中搜索模板,我只是去安装>样本> Visual C ++>桌面和Hurray!我看到一个Win32C ++ UTF-8转换助手示例。我将使用它来创建项目,然后丢弃任何不必要的,使其为空。一个可怕的方法只是为了得到一个空的C ++项目:(



    编辑:
    我发布了相同的问题在Microsoft开发人员网络上经过一天的试验和错误后,

    最后,我发现这个问题的答案....



    我很蠢,继续使用错误的快捷方式启动vs-community。



    如果你想看到所有的C ++模板(包括win32,MFC,ATL,...),你必须使用快捷方式Visual Studio 2015而不是Blend for Visual Studio 2015(屏幕截图



    安装Visual Studio社区2015后有两个快捷方式。
    由于您请参阅,它们各自指向不同的目标
    所以你需要使用运行devenv.exe而不是Blend.exe的快捷方式。



    但是奇怪的是, ISO 安装会启动 devenv.exe ,但是Web安装程序(vs_community.exe)启动Blend.exe。



    我想我是唯一在这里犯了这样一个愚蠢的错误。
    可能是我应该删除这个问题,如果没有这么多发现它有用。


    First, let me show you what I have..

    1. Visual Studio Community 2015 installed with customization as follows..

    2. Windows 10 Home (x64)

    I tried creating C++ project with Win32 and standard C++11 support but I couldn't find any under "File > New > Project > Installed > Templates > Visual C++ > Windows". (Universal Windows App is the only option here ...)

    I wish that the subpaths under my "File > New > Project > Installed > Templates > Visual C++ > Windows" have all three items that Visual C# and Basic already have underneath ("Universal", "Windows 8", "Classic Desktop"). To be more specific, I wish my "Visual C++ > Windows" to look like this..

    I know that I can code Win32/C++ using "Universal Windows Apps" template but Win32 support is limited and it comes with bunch of .Net stuff that I don't need. Please don't get me wrong, I do love .Net and WPF and I myself was once a C# programmer (WinForm in particular) and I think of .Net to be the future of Windows development but right now I need to start with empty project with Win32/C++ support.

    Is this problem confined to Community version only? (anyone tried VS2015 Pro/Ent ? please let me know)

    EDIT: Definitely can't be a solution to this problem.. but I found that I can circumvent the problem as below:

    Here's how it works. Instead of searching for templates in "Installed > Visual C++ > Windows", I just go to "Installed > Samples > Visual C++ > Desktop" and Hurray! I see a Win32 "C++ UTF-8 Conversion Helpers" sample. I'll just use it to create projects and then discard anything unnecessary to make it empty. One hell of a pathetic approach just to get an empty C++ project :(

    EDIT: I posted the same question on Microsoft Developer Network. After another day of trials and errors, this is the furthest I went. Still no sign of "Classic Desktop" under C++

    解决方案

    Finally, I found an answer to this problem....

    I was so stupid to keep on launching vs-community using the wrong shortcut.

    If you want to see all the C++ templates (including win32,MFC,ATL,...), you must use the shortcut "Visual Studio 2015" not the "Blend for Visual Studio 2015" (screenshot)

    There are two shortcuts after you install Visual Studio Community 2015. As you see, they each point to the different target. So you need to use the shortcut that runs "devenv.exe" not the "Blend.exe".

    But its strange that the first launch after the ISO installation launches "devenv.exe" but the web installer(vs_community.exe) launches "Blend.exe".

    I guess I'm the only one here who made such a stupid mistake. May be I should delete this question if not so many find it useful.

    这篇关于Visual Studio社区2015中的C ++项目如何才能包含通用应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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