Migrate your Win/WP 8.1 Apps to Windows 10 (UAP)

Win10_Windows_ProductFamily_Web

 

In this blog post, we will walk through How to integrate your Windows/Windows Phone 8.1 apps to Windows 10 Apps (Universal App Platform).

“Writing for Windows 10, is writing for all devices.”

First of all, we will have to make some modifications in package.appxmanifest but, unfortunately there’s no tools in Visual Studio CTP and Windows 10 Developer Tools yet.

But, to solve this problem at the meanwhile, there’s a Powershell script is written to do most of work till the full version, and you can get this file from HERE.

After you download the Powershell file, unzip it and place unzipped folder in the C Drive.

And you can get these tools from HERE.

Now, Let’s Start 🙂

  1. Open your Win/WP 8.1 Project and Right Click the project and hit Open in File Explorer.
  2. Click File > Open command prompt > Open command prompt as shown:
  3. Then, write following command.
    C:\ProjectUpgradeUtility\Run_UpgradetoUAP_Powershell_script.bat
    And hit Enter.
    CMD
    This will convert the .csproj to UAP and will update the package.appxmanifest
  4. Now, you will find your project migrated to UAP.
  5. Make some edits in package.appxmanifest by adding uap: before some capabilities and Application Extensions and Protocols like shown below:
    appxmanifest
  6. And if you are migrating Windows 8.1 App, Change the tile size like shown below:
    Win8.1 Tile size
  7. Before you run, you have to add some extensions to solve Platform Specific issues (e.g phone back button), Right Click References and then hit Add Reference > Universal App Platform > Extensions
    Add: Windows Desktop Extension SDK and Windows Mobile Extension SDK
    Extensions
  8. Now, Run your App, you might face some issues in xaml like Phone Styles, change them to public style that could run in Windows 10 UAP.
  9. About the Charms, they are not existed anymore in Windows 10 with the same UI but, you should replace them with in-app UI for (Search – App Settings – Sharing).

And Here are some tips to put in your consideration while migrating to Windows 10:

  • Don’t forget to add Reference to Platform Extension SDKs, if needed.
  • Review conditional code (#if…) and convert to adaptive code where appropriate.
  • Replace calls to deprecated APIs, if any.
  • Replace references to undefined styles in XAML (as we mentioned above).
  • Update code that integrates with Charms bar.
  • Extend your UI to create a great, adaptive UI that works across multiple device families.(The most Important)

This was a very simple scenario for migrating you Win/WP 8.1 App to Windows 10.
Keep in mind, it’s still a preview 😉

Advertisements

3 thoughts on “Migrate your Win/WP 8.1 Apps to Windows 10 (UAP)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s