Building an app for Windows and Windows Phone at the same time is possible now. Project templates for universal apps are available when you install Visual Studio 2013 with Update 2 or later. Universal App is sharing code, user controls, styles, strings, and other assets between the two projects in Visual Studio. This reduces the time and expense associated with building and maintaining an app for each type of device.
Just imagine you have already developed a Windows Store app, and you want Windows Phone app for the same than you can easily add a Windows Phone Store app to the same solution and build Windows Phone app with less effort. Similarly, if you started by creating a Windows Phone app, you can easily add a Windows Store app.
Here we are providing steps to create Universal Apps:
- Windows 8.1
- Windows Phone 8.1
its contains any code that you want to share between apps. For example, if you created your app by using a Visual Studio template, consider moving the Common, DataModel, and Strings folders into the Shared project. You can even move App.xaml into the Shared project .
Select Windows Project as default and run in simulator.
Select Windows Phone Project as default and run in emulator.
Same project running in both device emulator.