Universal Apps template missing in Visual Studio 2015 Community

两盒软妹~` 提交于 2019-11-30 17:44:42

问题


I still cannot create a new Universal App in Visual Studio 2015 Community I have installed.

I thought the reason was I was running Windows 8.1. Today I upgraded to Windows 10, but there is no "Universal Apps" templates available.

I have installed Windows 10 SDK but nothing changed.

How can I fix that?

Thank you.


回答1:


You need to install the Windows 10 Developer Tools (select modify and select the Win10 tools + Emulator if wanted). After this you see the template in New Project.




回答2:


As of March 2016, the VS development tools including the ones for cross platform development with Xamarin, tools are embedded in the Visual studio 2015 update 2, both community and enterprise versions.

All you need to do is go to the ISO file and try to re-install from the ISO file then select modify from the options then select universal windows development tools. Refer to the screenshots for better understanding.




回答3:


As pointed out by @magicandre1981, the Universal App template appears only if Windows 10 developer tools are selected while running the installer and choosing the custom setup. Also, there is no such thing as a separate template for mobile or desktop as this is what is the true meaning of universal.
You can simply choose the Universal App template and write code to target any/all of the device families as explained in Guide to Universal Windows Platform.
Further, add reference to extension SDK specific to device-family ( Windows Mobile Extensions for mobile api).

To use device specific api, you must first check its availability.

  Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons");


来源:https://stackoverflow.com/questions/31704614/universal-apps-template-missing-in-visual-studio-2015-community

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!