.NET Standard - Under the Hood

Immo Landwerth
Immo LandwerthProgram Manager at Microsoft
.NET Standard
Under the Hood
.NET Standard is represented by
• The NuGet package NetStandard.Library which contains
• The reference assembly netstandard.dll
At build time
• .NET Standard bridges references to existing .NET Framework and PCL
assemblies via type forwarding
At runtime
• Each platform provides an implementation for netstandard.dll that type
forwards to its implementation
How does .NET Standard work?
What can you reference from .NET Standard?
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
.NET Standard under the hood
TYPE
FORWARDING
netstandard!Object
mscorlib!Object
This happens when you build a .NET Standard-based Library
.NET Standard under the hood
TYPE
FORWARDING
This happens when you load .NET Standard-based library
1 of 5

Recommended

.NET Standard - Introduction by
.NET Standard - Introduction.NET Standard - Introduction
.NET Standard - IntroductionImmo Landwerth
1.6K views9 slides
.NET Standard - NuGet Analysis by
.NET Standard - NuGet Analysis.NET Standard - NuGet Analysis
.NET Standard - NuGet AnalysisImmo Landwerth
1.1K views16 slides
.Net standard 2.0 by
.Net standard 2.0.Net standard 2.0
.Net standard 2.0Scott Golightly
403 views9 slides
Overview of the new .NET Core and .NET Platform Standard by
Overview of the new .NET Core and .NET Platform StandardOverview of the new .NET Core and .NET Platform Standard
Overview of the new .NET Core and .NET Platform StandardAlex Thissen
1.8K views34 slides
A Whirldwind Tour of ASP.NET 5 by
A Whirldwind Tour of ASP.NET 5A Whirldwind Tour of ASP.NET 5
A Whirldwind Tour of ASP.NET 5Steven Smith
1.5K views23 slides
Desarrollo multiplataforma con el framework .net by
Desarrollo multiplataforma con el framework .netDesarrollo multiplataforma con el framework .net
Desarrollo multiplataforma con el framework .netDan Ardelean
98 views16 slides

More Related Content

What's hot

.Net Core Blimey! (16/07/2015) by
.Net Core Blimey! (16/07/2015).Net Core Blimey! (16/07/2015)
.Net Core Blimey! (16/07/2015)citizenmatt
1.4K views35 slides
.NET Framework by
.NET Framework.NET Framework
.NET Frameworkvijayakumari kaliannan
40 views19 slides
Microsoft .Net Framework by
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net FrameworkRohit Rao
213 views15 slides
.Net Core by
.Net Core.Net Core
.Net CoreBohdan Pashkovskyi
724 views19 slides
Presentation1.pptx by
Presentation1.pptxPresentation1.pptx
Presentation1.pptxSubashiniRathinavel
77 views21 slides
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose by
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San JoseTypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San JoseSteve Reiner
15.3K views10 slides

What's hot(20)

.Net Core Blimey! (16/07/2015) by citizenmatt
.Net Core Blimey! (16/07/2015).Net Core Blimey! (16/07/2015)
.Net Core Blimey! (16/07/2015)
citizenmatt1.4K views
Microsoft .Net Framework by Rohit Rao
Microsoft .Net FrameworkMicrosoft .Net Framework
Microsoft .Net Framework
Rohit Rao213 views
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose by Steve Reiner
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San JoseTypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose
TypeScript for Alfresco and CMIS - Alfresco DevCon 2012 San Jose
Steve Reiner15.3K views
Whats new in .NET for 2019 by Rory Preddy
Whats new in .NET for 2019Whats new in .NET for 2019
Whats new in .NET for 2019
Rory Preddy219 views
What's New in .Net 4.5 by Malam Team
What's New in .Net 4.5What's New in .Net 4.5
What's New in .Net 4.5
Malam Team3K views
Mozilla: Automated Mozmill Tests by Henrik Skupin
Mozilla: Automated Mozmill TestsMozilla: Automated Mozmill Tests
Mozilla: Automated Mozmill Tests
Henrik Skupin1.4K views
ATDD Using Robot Framework by Pekka Klärck
ATDD Using Robot FrameworkATDD Using Robot Framework
ATDD Using Robot Framework
Pekka Klärck27.7K views
SyPy IronPython by Nick Hodge
SyPy IronPythonSyPy IronPython
SyPy IronPython
Nick Hodge696 views
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016 by Sunny Sharma
Microsoft Azure DocumentDB -  Global Azure Bootcamp 2016Microsoft Azure DocumentDB -  Global Azure Bootcamp 2016
Microsoft Azure DocumentDB - Global Azure Bootcamp 2016
Sunny Sharma1.4K views
Evolution of .net frame work by vc7722
Evolution of .net frame workEvolution of .net frame work
Evolution of .net frame work
vc7722999 views
.Net programming with C# by NguynSang29
.Net programming with C#.Net programming with C#
.Net programming with C#
NguynSang29151 views

Viewers also liked

Roslyn on GitHub by
Roslyn on GitHubRoslyn on GitHub
Roslyn on GitHubImmo Landwerth
2.3K views33 slides
Introduction to .NET Core by
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET CoreMarco Parenzan
3.7K views65 slides
A "Firewall" for Bad Binaries by
A "Firewall" for Bad BinariesA "Firewall" for Bad Binaries
A "Firewall" for Bad BinariesSonatype
569 views20 slides
.Net Standard Libraries and Xamarin by
.Net Standard Libraries and Xamarin.Net Standard Libraries and Xamarin
.Net Standard Libraries and XamarinJames Montemagno
644 views12 slides
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017) by
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)citizenmatt
1.7K views76 slides
White Paper: Concepts and Benefits of Repository Management by
White Paper: Concepts and Benefits of Repository ManagementWhite Paper: Concepts and Benefits of Repository Management
White Paper: Concepts and Benefits of Repository ManagementSonatype
2.5K views12 slides

Viewers also liked(15)

Introduction to .NET Core by Marco Parenzan
Introduction to .NET CoreIntroduction to .NET Core
Introduction to .NET Core
Marco Parenzan3.7K views
A "Firewall" for Bad Binaries by Sonatype
A "Firewall" for Bad BinariesA "Firewall" for Bad Binaries
A "Firewall" for Bad Binaries
Sonatype 569 views
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017) by citizenmatt
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
The how-dare-you-call-me-an-idiot’s guide to the .NET Standard (NDC London 2017)
citizenmatt1.7K views
White Paper: Concepts and Benefits of Repository Management by Sonatype
White Paper: Concepts and Benefits of Repository ManagementWhite Paper: Concepts and Benefits of Repository Management
White Paper: Concepts and Benefits of Repository Management
Sonatype 2.5K views
Smart Repository Management (openBlend 2011, Ljubljana, Slovenia) by Tamas Cservenak
Smart Repository Management (openBlend 2011, Ljubljana, Slovenia)Smart Repository Management (openBlend 2011, Ljubljana, Slovenia)
Smart Repository Management (openBlend 2011, Ljubljana, Slovenia)
Tamas Cservenak676 views
Realtime Apps en .NET Core by Carlos Landeras y Manuel Rodrigo Cabello by Plain Concepts
Realtime Apps en .NET Core by Carlos Landeras y Manuel Rodrigo CabelloRealtime Apps en .NET Core by Carlos Landeras y Manuel Rodrigo Cabello
Realtime Apps en .NET Core by Carlos Landeras y Manuel Rodrigo Cabello
Plain Concepts643 views
Entity Framework Core by Unai Zorrilla by Plain Concepts
Entity Framework Core by Unai ZorrillaEntity Framework Core by Unai Zorrilla
Entity Framework Core by Unai Zorrilla
Plain Concepts360 views
ASP.NET MVC Core by Eduard Tomàs by Plain Concepts
ASP.NET MVC Core by Eduard TomàsASP.NET MVC Core by Eduard Tomàs
ASP.NET MVC Core by Eduard Tomàs
Plain Concepts477 views
Visual studio 2017 by Larry Nung
Visual studio 2017Visual studio 2017
Visual studio 2017
Larry Nung259 views
Repository Management with JFrog Artifactory by Stephen Chin
Repository Management with JFrog ArtifactoryRepository Management with JFrog Artifactory
Repository Management with JFrog Artifactory
Stephen Chin11.4K views
Visual studio 2017 - Launch Event Keynote by Delta-N
Visual studio 2017  - Launch Event KeynoteVisual studio 2017  - Launch Event Keynote
Visual studio 2017 - Launch Event Keynote
Delta-N897 views
Introduction to .net framework by Arun Prasad
Introduction to .net frameworkIntroduction to .net framework
Introduction to .net framework
Arun Prasad88.2K views

Similar to .NET Standard - Under the Hood

Introduction to dot net by
Introduction to dot netIntroduction to dot net
Introduction to dot netQIANG XU
35 views20 slides
.Net Standard 2.0 by
.Net Standard 2.0.Net Standard 2.0
.Net Standard 2.0Swaminathan Vetri
511 views25 slides
Modern .NET Ecosystem by
Modern .NET EcosystemModern .NET Ecosystem
Modern .NET EcosystemAndrei Marukovich
502 views18 slides
SOLID Programming with Portable Class Libraries by
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesVagif Abilov
949 views47 slides
.NET Core Blimey! (dotnetsheff Jan 2016) by
.NET Core Blimey! (dotnetsheff Jan 2016).NET Core Blimey! (dotnetsheff Jan 2016)
.NET Core Blimey! (dotnetsheff Jan 2016)citizenmatt
688 views38 slides
.NET Core, ASP.NET Core Course, Session 1 by
.NET Core, ASP.NET Core Course, Session 1.NET Core, ASP.NET Core Course, Session 1
.NET Core, ASP.NET Core Course, Session 1aminmesbahi
361 views36 slides

Similar to .NET Standard - Under the Hood(20)

Introduction to dot net by QIANG XU
Introduction to dot netIntroduction to dot net
Introduction to dot net
QIANG XU35 views
SOLID Programming with Portable Class Libraries by Vagif Abilov
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class Libraries
Vagif Abilov949 views
.NET Core Blimey! (dotnetsheff Jan 2016) by citizenmatt
.NET Core Blimey! (dotnetsheff Jan 2016).NET Core Blimey! (dotnetsheff Jan 2016)
.NET Core Blimey! (dotnetsheff Jan 2016)
citizenmatt688 views
.NET Core, ASP.NET Core Course, Session 1 by aminmesbahi
.NET Core, ASP.NET Core Course, Session 1.NET Core, ASP.NET Core Course, Session 1
.NET Core, ASP.NET Core Course, Session 1
aminmesbahi361 views
.NET Core: a new .NET Platform by Alex Thissen
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET Platform
Alex Thissen1.4K views
.NET Core, ASP.NET Core Course, Session 2 by aminmesbahi
.NET Core, ASP.NET Core Course, Session 2.NET Core, ASP.NET Core Course, Session 2
.NET Core, ASP.NET Core Course, Session 2
aminmesbahi195 views
Raffaele Rialdi by CodeFest
Raffaele RialdiRaffaele Rialdi
Raffaele Rialdi
CodeFest353 views
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines by anynines GmbH
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anyninesCloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
Cloud Infrastructures Slide Set 7 - Docker - Neo4j | anynines
anynines GmbH668 views
.net Core Blimey - Smart Devs UG by citizenmatt
.net Core Blimey - Smart Devs UG.net Core Blimey - Smart Devs UG
.net Core Blimey - Smart Devs UG
citizenmatt480 views
Asp.Net Core MVC , Razor page , Entity Framework Core by mohamed elshafey
Asp.Net Core MVC , Razor page , Entity Framework CoreAsp.Net Core MVC , Razor page , Entity Framework Core
Asp.Net Core MVC , Razor page , Entity Framework Core
mohamed elshafey372 views
Standard libraries with_xamarin by Ken Tucker
Standard libraries with_xamarinStandard libraries with_xamarin
Standard libraries with_xamarin
Ken Tucker33 views
Everything you need to know about Docker by Alican Akkuş
Everything you need to know about DockerEverything you need to know about Docker
Everything you need to know about Docker
Alican Akkuş345 views
Docker.pptx by balaji257
Docker.pptxDocker.pptx
Docker.pptx
balaji257470 views
#OSSPARIS17 - Tosca : Construire et déployer rapidement des applications dist... by Paris Open Source Summit
#OSSPARIS17 - Tosca : Construire et déployer rapidement des applications dist...#OSSPARIS17 - Tosca : Construire et déployer rapidement des applications dist...
#OSSPARIS17 - Tosca : Construire et déployer rapidement des applications dist...

Recently uploaded

Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating... by
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...Taste
39 views34 slides
Introduction to AERO Supply Chain - #BEAERO Trainning program by
Introduction to AERO Supply Chain  - #BEAERO Trainning programIntroduction to AERO Supply Chain  - #BEAERO Trainning program
Introduction to AERO Supply Chain - #BEAERO Trainning programGuennoun Wajih
142 views78 slides
UNIT NO 13 ORGANISMS AND POPULATION.pptx by
UNIT NO 13 ORGANISMS AND POPULATION.pptxUNIT NO 13 ORGANISMS AND POPULATION.pptx
UNIT NO 13 ORGANISMS AND POPULATION.pptxMadhuri Bhande
59 views33 slides
GSoC 2024 .pdf by
GSoC 2024 .pdfGSoC 2024 .pdf
GSoC 2024 .pdfShabNaz2
50 views15 slides
Boston In The American Revolution by
Boston In The American RevolutionBoston In The American Revolution
Boston In The American RevolutionMary Brown
38 views78 slides
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37 by
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37MysoreMuleSoftMeetup
59 views17 slides

Recently uploaded(20)

Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating... by Taste
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...
Creative Restart 2023: Christophe Wechsler - From the Inside Out: Cultivating...
Taste39 views
Introduction to AERO Supply Chain - #BEAERO Trainning program by Guennoun Wajih
Introduction to AERO Supply Chain  - #BEAERO Trainning programIntroduction to AERO Supply Chain  - #BEAERO Trainning program
Introduction to AERO Supply Chain - #BEAERO Trainning program
Guennoun Wajih142 views
UNIT NO 13 ORGANISMS AND POPULATION.pptx by Madhuri Bhande
UNIT NO 13 ORGANISMS AND POPULATION.pptxUNIT NO 13 ORGANISMS AND POPULATION.pptx
UNIT NO 13 ORGANISMS AND POPULATION.pptx
Madhuri Bhande59 views
GSoC 2024 .pdf by ShabNaz2
GSoC 2024 .pdfGSoC 2024 .pdf
GSoC 2024 .pdf
ShabNaz250 views
Boston In The American Revolution by Mary Brown
Boston In The American RevolutionBoston In The American Revolution
Boston In The American Revolution
Mary Brown38 views
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37 by MysoreMuleSoftMeetup
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Payment Integration using Braintree Connector | MuleSoft Mysore Meetup #37
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab... by RAHUL PAL
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...
Research Methodology (M. Pharm, IIIrd Sem.)_UNIT_IV_CPCSEA Guidelines for Lab...
RAHUL PAL53 views
Presentation_NC_Future now 2006.pdf by Lora
Presentation_NC_Future now 2006.pdfPresentation_NC_Future now 2006.pdf
Presentation_NC_Future now 2006.pdf
Lora 38 views
The Future of Micro-credentials: Is Small Really Beautiful? by Mark Brown
The Future of Micro-credentials:  Is Small Really Beautiful?The Future of Micro-credentials:  Is Small Really Beautiful?
The Future of Micro-credentials: Is Small Really Beautiful?
Mark Brown131 views
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx by Niranjan Chavan
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptxGuidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx
Guidelines & Identification of Early Sepsis DR. NN CHAVAN 02122023.pptx
Niranjan Chavan48 views
ANGULARJS.pdf by ArthyR3
ANGULARJS.pdfANGULARJS.pdf
ANGULARJS.pdf
ArthyR354 views
JRN 362 - Lecture Twenty-Three (Epilogue) by Rich Hanley
JRN 362 - Lecture Twenty-Three (Epilogue)JRN 362 - Lecture Twenty-Three (Epilogue)
JRN 362 - Lecture Twenty-Three (Epilogue)
Rich Hanley46 views
Education of marginalized and socially disadvantages segments.pptx by GarimaBhati5
Education of marginalized and socially disadvantages segments.pptxEducation of marginalized and socially disadvantages segments.pptx
Education of marginalized and socially disadvantages segments.pptx
GarimaBhati559 views
Career Building in AI - Technologies, Trends and Opportunities by WebStackAcademy
Career Building in AI - Technologies, Trends and OpportunitiesCareer Building in AI - Technologies, Trends and Opportunities
Career Building in AI - Technologies, Trends and Opportunities
WebStackAcademy56 views

.NET Standard - Under the Hood

  • 2. .NET Standard is represented by • The NuGet package NetStandard.Library which contains • The reference assembly netstandard.dll At build time • .NET Standard bridges references to existing .NET Framework and PCL assemblies via type forwarding At runtime • Each platform provides an implementation for netstandard.dll that type forwards to its implementation How does .NET Standard work?
  • 3. What can you reference from .NET Standard? 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
  • 4. .NET Standard under the hood TYPE FORWARDING netstandard!Object mscorlib!Object This happens when you build a .NET Standard-based Library
  • 5. .NET Standard under the hood TYPE FORWARDING This happens when you load .NET Standard-based library