Chapter 22Universal Apps

Wrox.com Code Downloads for this Chapter

The wrox.com code downloads for this chapter are found at www.wrox.com/go/professionalvisualstudio2015 on the Download Code tab. The code and any related support files are located in their own folder for this chapter.

Write once, run everywhere is a mantra that harkens back to the early days of Java. Although the concept of being able to create a single code base and have it run everywhere is the Holy Grail for developers, the technical challenges involved in meeting that goal are daunting. To be fair, Universal Apps don't get to that level of universality (pun intended) either. But they are the furthest that Microsoft has come along this path. They allow .NET assemblies to be created once and used on a number of different platforms, including mobile and tablet. And if “write once, run everywhere” is good enough for you, then spending time digging into Universal Apps is a worthwhile endeavor.

To support the goal of multiplatform development, Microsoft has been evolving the .NET Framework to increase the level of commonality between platforms. The idea is to have a set of core functionality that is shared across phones, tablets, and PCs. Once it's established, the size of the common core will increase over time. Although not all your application ...

Get Professional Visual Studio 2015 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.