Sharing class libraries across different runtimes

There are a number of managed runtimes and profiles for .NET development including the .NET Framework, Silverlight, Windows Phone, Windows 8.X, and the Universal Windows Platform (UWP). When you have to write code that can be shared across more than one of these runtimes, various options are available. Frequently, it can involve either the use of copy-and-paste development, or multiple versions of the same project and the use of linked files. Neither approach is ideal as they introduce greater possibilities for errors and make updating difficult. It is all too easy to make changes to a piece code during an intensive debugging session, and then forget to copy them over to the other files.

The solution ...

Get Visual Studio 2015 Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.