Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Universal Apps template missing in Visual Studio 2015 Community

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.

like image 547
Igor Kondrasovas Avatar asked Jul 29 '15 15:07

Igor Kondrasovas


3 Answers

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.

like image 68
magicandre1981 Avatar answered Nov 19 '22 18:11

magicandre1981


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.

select modify and choose UWP Dev toolsfor cross platform dev tools with xamarin, android emulator too, etc

like image 3
PreshOnyee Avatar answered Nov 19 '22 20:11

PreshOnyee


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");
like image 1
Raunak Yadav Avatar answered Nov 19 '22 19:11

Raunak Yadav