Book Image

Visual Studio 2015 Cookbook - Second Edition

By : Jeff Martin
Book Image

Visual Studio 2015 Cookbook - Second Edition

By: Jeff Martin

Overview of this book

Visual Studio 2015 is the premier tool for developers targeting the Microsoft platform. Learning how to effectively use this technology can enhance your productivity while simplifying your most common tasks, allowing you more time to focus on your project. Visual Studio 2015 is packed with improvements that increase productivity, and this book walks you through each one in succession to help you smooth your workflow and get more accomplished. From customization and the interface to code snippets and debugging, the Visual Studio upgrade expands your options — and this book is your fast-track guide to getting on board quickly. Visual Studio 2015 Cookbook will introduce you to all the new areas of Visual Studio and how they can quickly be put to use to improve your everyday development tasks. With this book, you will learn not only what VS2015 offers, but what it takes to put it to work for your projects.
Table of Contents (17 chapters)
Visual Studio 2015 Cookbook Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

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 to all of these issues is to use Portable Class Libraries (PCL). The idea here is that you can build a class library that works across all desired runtimes by ensuring that all code that is general to all platforms is used. So whether you have...