10 stories
today

Microsoft: How to migrate apps from Windows 8 Developer Preview to Consumer Preview

Microsoft is very appreciative to those who have been developing Windows 8 apps and has now offered developers advice on how to migrate their apps from the Windows 8 Developer Preview to the Consumer Preview.

“We really appreciate you building apps for the preview releases. Your feedback helps us make Windows 8 great. Of course, building on a preview means that you need to make updates to your apps for each preview release,” Microsoft stated in an official blog post.

But why are there code changes between the two official builds of Windows 8? Microsoft points out that some features are confusing or lack capabilities and are completed or changed based upon feedback. “After we complete a feature and start using it ourselves, we realize it just didn’t land where we wanted it to, so we take what we learned and make it better.”

Since there are many changes to the API in the Windows Runtime and Windows Library for JavaScript, Microsoft recommends creating a new project in Visual Studio and importing your assets from the old project:

  • Create a new project in Visual Studio and pick the template that most closely resembles the UI of your existing app.
  • If the new Item Templates support the contracts and features you need, like the File Picker contract or the Search contract, use them instead of trying to reuse your existing code.
  • After you reconstruct the basic elements of your UI using the new templates, migrate your visual and audio assets from your old project into your new one. Limit the additional code you bring into the project to just be the custom business logic that was at the heart of your app.
  • Finally, begin to stitch your new UI (structured with the new templates) to your visual and audio assets and to your back-end logic.

You can check out the blog post for in-depth details on how to migrate your code from the Windows 8 Developer Preview to the Consumer Preview.

Further reading: ,