Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

.NET Conf 2018: Build Great Libraries using .NET Standard

Description
Want to create great .NET class libraries? Confused about .NET Standard, .NET Core, and .NET Framework? Watch this talk to learn how you can easily support multiple platforms with .NET Standard and no compromises, thanks to via multi-targeting. We'll also cover the other aspects, such as versioning, strong naming, and binding redirects.

  • Be the first to comment

.NET Conf 2018: Build Great Libraries using .NET Standard

  1. 1. What is .NET Standard?
  2. 2. $ dotnet new classlib -o My.Class.Library .NET Standard .NET Core .NET Framework Xamarin ~ ~ HTML specification Browsers
  3. 3. .NET Standard
  4. 4. https://github.com/dotnet/standard/tree/master/docs/planning/netstandard-2.1
  5. 5. Using platform-specific APIs from .NET Standard
  6. 6. https://aka.ms/apianalyzer
  7. 7. .NET Standard & .NET Framework
  8. 8. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v1.0.3705"> <dependentAssembly> <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a“ culture="neutral"/> <bindingRedirect oldVersion="0.0.0.0-1.2.2.0" newVersion="1.2.2.0"/> </dependentAssembly> </assemblyBinding>
  9. 9. Versioning
  10. 10. Kind When to increment Comment Package Version Every change The ID of the NuGet package. Assembly Version As you see fit The version number of the assembly. Used by the loader to resolve assemblies. File Version Every change Generic concept, used by installers to determine which file is newer. Informational Version As you see fit Display string, doesn’t need to be a version.
  11. 11. Tips & Tricks
  12. 12. https://aka.ms/netstandardFaq https://aka.ms/netstandardDocs
  13. 13. My Standard Library 2.x .NET Standard Library .NET Framework LibraryPortable Class Library .NET FRAMEWORK .NET CORE XAMARIN Via Portability Via Compatibility Shim Legend Application Type Is able to reference
  14. 14. TYPE FORWARDING This happens when you build a .NET Standard-based Library
  15. 15. TYPE FORWARDING This happens when you load .NET Standard-based library
  16. 16. TYPE FORWARDING This happens when you build a .NET Standard-based library with platform-specific extensions TYPE FORWARDING
  17. 17. This happens when you load .NET Standard-based library with platform-specific extensions EXCEPTION TYPE FORWARDING

    Be the first to comment

    Login to see the comments

  • ClaudiuTomescu

    Sep. 14, 2018
  • FelixObermaier

    Oct. 29, 2018

Description Want to create great .NET class libraries? Confused about .NET Standard, .NET Core, and .NET Framework? Watch this talk to learn how you can easily support multiple platforms with .NET Standard and no compromises, thanks to via multi-targeting. We'll also cover the other aspects, such as versioning, strong naming, and binding redirects.

Views

Total views

602

On Slideshare

0

From embeds

0

Number of embeds

8

Actions

Downloads

28

Shares

0

Comments

0

Likes

2

×