NET Core and More

TH16 .NET Standard: Reuse All the Code


1:30pm - 2:45pm

Level: Intermediate

Jonathan "J." Tower

Partner & Principal Consultant

Trailhead Technology Partners

If you've ever publish a .NET code library for reuse on different types of .NET projects, you're probably already familiar with some of the strategies for doing this on different flavors of the .NET Framework: multiple compiles, portable class libraries (PCLs), etc. Did you know that Microsoft has come up with a new standard that helps you share your libraries easily by targeting a new, virtual .NET Framework called .NET Standard?

In this session, I'll show you how to write code that compiles once and can be shared across disparate environments--Mono for iOS and Android, Windows, Mac and Linux via .NET Core, and Universal Windows Platform (UWP). It can even be reused on versions of .NET that haven't been invented yet.

If you want to publish a reusable component, or just need to share code in multiple project, come learn the new and better way to do it with .NET Standard.

You will learn:

  • What .NET Standard is, and how it's better than PCLs
  • How to read Nuget packages supported frameworks
  • How targeting .NET Standard in their code libraries will allow for easy future reuse of that code across platforms