Following the changes to the project structure and the appxmanifest schema changes, I decided to put together a little Visual Studio 2015 Extension to upgrade the existing Windows Store 8.1 or Windows Phone 8.1 (not Silverlight) projects to Windows 10 UAP applications.
After the extension is installed you will have an additional menu item in the project file context menu.
You can with ease upgrade the project file and the package appxmanifest to the UAP platform.
To demonstrate this retargeting process, I am going to start by creating a default universal Hub application.
Once the solution and the projects are created, we have a Windows 8.1 and Windows Phone 8.1 projects.
Now, after selecting the windows phone project, you will have to use the new menu item.
|NOTE: The retarget menu item will only be available on Windows Store 8.1 (C#) and Windows Phone 8.1 (C#) projects.|
Once the retargeting operation is completed, visual studio will be asking to reload the project. You can select “Reload All” option.
When the project is reloaded, you will see the new Windows 10 project added to the solution hierarchy.
Keep in mind you still might need to change couple of things in the project to get it running. (e.g. Phone specific styles left from Windows Phone 8.1 implementation, Tile sizes left from the Windows Store application – in the new package manifest the tile sizes are the same as the phone package manifest from 8.1)
Happy coding everyone,
P.S. I want to thank Andy Wigley (@andy_wigley) for putting the effort to write the PowerShell script to upgrade the projects. This extension is inspired by his script.