12
James Montemagno @JamesMontemagno Principal PM – Xamarin, Microsoft .NET Standard Libraries + Xamarin

Net Standard Libraries and Xamarin

Embed Size (px)

Citation preview

Page 1: Net Standard Libraries and Xamarin

James Montemagno@JamesMontemagnoPrincipal PM – Xamarin, Microsoft

.NET Standard Libraries + Xamarin

Page 2: Net Standard Libraries and Xamarin

www.mergeconflict.fmWeekly development and technology podcast.

Page 3: Net Standard Libraries and Xamarin

Shared C# codebase • 100% native API access • High performance

iOS C# UI

Windows C# UIAndroid C# UI

Shared C# Mobile

C# Server

Linux/MonoCoreCLRAzure

Shared C# Client/Server

Xamarin’s Unique Approach

Page 4: Net Standard Libraries and Xamarin

• Product -> .NET on Windows/Linux/macOS• .NET Core Runtime• Implements the .NET Standard Library 1.6• Same as ASP.NET Core or the .NET

Framework

What is .NET Core?

https://www.microsoft.com/net/core

Page 5: Net Standard Libraries and Xamarin
Page 6: Net Standard Libraries and Xamarin

• Specification of .NET APIs for .NET Runtimes• Developers products portable libraries

usable across .NET Runtimes• Reduces/Eliminates conditional compilation

of shared source• Offers different “netstandard” profiles for

platform support

What is .NET Standard?

https://docs.microsoft.com/en-us/dotnet/articles/standard/library

Page 7: Net Standard Libraries and Xamarin

.NET Platforms Support

Page 8: Net Standard Libraries and Xamarin

API Contracts

Page 9: Net Standard Libraries and Xamarin

• Similarities• Defines APIs that can be used for code sharing

• Differences• .NET Standard Library is a curate set of APIs (not an

intersection)• .NET Standard Library has linear versions (PCLs profiles do

not)• PCL profiles represent MS platforms, while the .NET

Standard Library is independent of the platform.

Comparison to Portable Class Libraries

https://docs.microsoft.com/en-us/dotnet/articles/standard/library

Page 10: Net Standard Libraries and Xamarin
Page 11: Net Standard Libraries and Xamarin

PCL Compatibility

Page 12: Net Standard Libraries and Xamarin

Thank you.

JamesMontemagnoPrincipal Program Manager – Xamarin,

[email protected] motzcod.es @JamesMontemagno

Questions?