SlideShare a Scribd company logo
What is .NET
1
outline
• .NET framework
• CLR
• CLI, CIL, MSIL
• ADO.NET, ASP.NET, MVC, webforms, razor
• Mono
• .NET Core
• .NET Standard
2
.NET framework
• Software framework
• First released early 2000’s
• “consists of the common language runtime (CLR) and the .NET
Framework class library (FCL)” [1]
• Provides a “code execution environment”
• Various runtime hosts for the CLR [2]
• ASP.NET (via ISAPI filter)
• Executable
• Can write your own
3
CLR
• The virtual machine that manages execution of .NET programs [3]
• Memory
• Threads
• Code trust
• Type checking
• pinvoke
• JIT compiling to execute on current hardware
4
5
.NET Framework and CLR
• Framework and CLR are different [4]
• Can technically run different framework versions
within the same CLR version
• E.g. Windows XP only supports framework up to 4.0,
running 4.5 apps is theoretically possible (with some
hex editing of the binary) as long as calls are restricted
to methods that were the same in 4.0 (e.g., no
extensions) [5]
• Recent framework updates have been focused on
• Optimization (including SIMD)
• Accessories (stylus, touch screen, etc)
• Security
6
CLR, CLI, CIL
• Common Language Infrastructure (CLI)
• Open standard that describes executable code [6]
• Common Intermediate Language (CIL) [7]
• Aka “IL”
• Formerly MSIL
• Object oriented assembly language
• Platform independent
• A compiler takes source code and
• Converts it to CIL using the CLI specification
• Adds any required metadata (type information, etc)
• This is an “assembly”
7
CLR, CLI, CIL
• Visual Studio tooling supports compiling C#, F#, VB.NET to CIL
• Semi C++ support [8]
• Language support include IronPython, ClojureCLR, IronScheme, others [10]
• Can write your own compiler
• C to CIL example in F# [9]
• Ahead of time (AOT) compilation to avoid JIT
• Has some performance benefits
• No longer portable across hardware
• CIL makes calling a method in another CIL library convenient
• Managed by CLR, vs unsafe dll call through pinvoke
8
CLR, CLI, CIL
• The CIL is available at runtime
• Metadata for the assembly needs to be available to the CLR
• This is generally available at runtime as well
• Can use this information to modify code at runtime
• See [21] which references [22]
• Useful for performance profiling, anti-debug avoidance
• Other more suitable tools exist for aspect oriented programming (AOP) and
mocking frameworks
9
.NET framework
• Includes a set of standard class libraries [11]
• Base Class Library (BCL) [12]
• Intrinsic types (e.g. string, datetime) and other base classes (e.g. FileStream)
• Follows ECMA specification
• Framework Class Library (FCL)
• Broader library base
• Depends on BCL
• Provides extensions, like LINQ methods
• System.Web, System.Data, System.Collections, System.Xml etc [13]
• Source available at [16]
• Also includes libraries for winforms, WPF, WCF, ASP.NET, etc
• These other libraries are mostly still proprietary (and will probably remain so)
10
ADO.NET, ASP.NET, MVC, webforms, razor
• ADO.NET is a .NET Framework library to interact with (MSSQL)
database
• Entity Framework is ORM for ADO.NET
• ASP.NET is a .NET framework library to serve dynamic web pages [14]
• Typically hosted in IIS
• Pages are “Web Forms”
• Has “code behind” file and view file
• Pages need to be compiled like source code
11
ADO.NET, ASP.NET, MVC, webforms, razor
• ASP.NET cont
• MVC is an extension to ASP.NET that comes with Visual Studio
• Implements Model-View-Controller design pattern
• Methods for a page are handled in the controller, or somewhere else as defined in route
setup
• Can still include code in the view itself, same as before
• Razor is typically used with MVC
• Entire state of the webpage (“ViewState”) no longer needs to be passed around with every
server call
• Page is no longer re-rendered with every server call
• Views are compiled on demand and can be changed at runtime
• No more if (!IsPostback)
// generate form
else
// process submitted data;
12
ASP.NET visualized
.NET Framework
CLR BCL
FCL
ASP.NET
(WebForms)
ASP.NET extensions
MVC
Razor
• Extensions available through Visual Studio, elsewhere
13
Mono
• Started as open source C# compiler and CLR [15]
• “Mono” includes the mono libraries (e.g. POSIX and OS libraries),
Code Execution Engine, etc
• Alternative to .NET Framework
• MonoDevelop is the IDE
14
.NET core
• Cross platform, open source [17]
• Alternative to .NET framework
• CoreCLR
• Fork of FCL
• ASP.NET core
• Universal Windows Platform (UWP) libraries
• Adds additional libraries
• Missing some .NET Framework libraries
• Windows forms, WPF
• Adds deployment to have self contained applications (via AOT compilation)
[20]
15
• Compare to .NET Framework, or C++
16
.NET Standard
• Set of API specifications (guidelines, not code)
• Supposed to be supported by multiple frameworks [18]
• Version commentary about 1.6 -> 2.0 at [19]
17
.NET Standard
• Unifying library across platforms
• Mostly based on .NET Framework mscorlib (BCL, FCL, “and friends”
[19])
• Binary compatible, not necessarily behavioral compatible
18
.NET FRAMEWORK .NET CORE XAMARIN
MONO
WPF
Windows
Forms
ASP.NET
UWP
ASP.NET
Core
iOS
OS X
Android
GTK#
.NET Standard
BCL FCL (partial?)
CLR CoreCLR Mono CLR
System.Runtime
*
Classes
Runtime
• Each framework has more libraries not shown (OS specific, compatibility, etc)
• Sticking to BCL and FCL is mostly cross platform, works well for simple console apps
POSIX
19
References
[1] https://docs.microsoft.com/en-us/dotnet/framework/get-started/overview
[2] https://msdn.microsoft.com/en-us/library/a51xd4ze(v=vs.71).aspx
[3] https://en.wikipedia.org/wiki/Common_Language_Runtime
[4] https://en.wikipedia.org/wiki/.NET_Framework
[5] https://stackoverflow.com/questions/17499351/is-it-possible-to-run-a-net-4-5-app-on-xp
[6] https://en.wikipedia.org/wiki/Common_Language_Infrastructure
[7] https://en.wikipedia.org/wiki/Common_Intermediate_Language
[8] https://stackoverflow.com/questions/688386/is-c-converted-into-msil
[9] http://timjones.io/blog/archive/2014/04/13/writing-a-minic-to-msil-compiler-in-fsharp-part-0-introduction
[10] https://en.wikipedia.org/wiki/List_of_CLI_languages
[11] https://stackoverflow.com/questions/807880/bcl-base-class-library-vs-fcl-framework-class-library
[12] https://en.wikipedia.org/wiki/List_of_data_types_of_the_Standard_Libraries#Base_Class_Library
[13] https://msdn.microsoft.com/en-us/library/gg145045(v=vs.110).aspx
[14] https://en.wikipedia.org/wiki/ASP.NET
[15] https://en.wikipedia.org/wiki/Mono_(software)
[16] http://referencesource.microsoft.com/
[17] https://docs.microsoft.com/en-us/dotnet/core/
[18] https://docs.microsoft.com/en-us/dotnet/standard/library
[19] https://github.com/dotnet/standard/tree/master/docs/netstandard-20
[20] https://github.com/dotnet/coreclr/blob/master/Documentation/building/crossgen.md
[21] https://stackoverflow.com/a/19403979/1462295
[22] https://www.codeproject.com/Articles/463508/NET-CLR-Injection-Modify-IL-Code-during-Run-time
20

More Related Content

PPT
Microsoft .NET (dotnet) Framework 2003 - 2004 overview and web services…
PDF
Introduction to dot net
PDF
.NET Core, ASP.NET Core Course, Session 1
PPTX
Presentation1.pptx
PPTX
.Net programming with C#
PPT
Best DotNet Training in Delhi
PPTX
.NET Core: a new .NET Platform
PPTX
VB IMPORTANT QUESTION
Microsoft .NET (dotnet) Framework 2003 - 2004 overview and web services…
Introduction to dot net
.NET Core, ASP.NET Core Course, Session 1
Presentation1.pptx
.Net programming with C#
Best DotNet Training in Delhi
.NET Core: a new .NET Platform
VB IMPORTANT QUESTION

Similar to Dotnet.ppt (20)

PDF
.Net Core Blimey! (16/07/2015)
PDF
Raffaele Rialdi
PPTX
Intro to Microsoft.NET
PDF
.net Core Blimey - Smart Devs UG
PDF
.NET Core Blimey! (dotnetsheff Jan 2016)
PPT
DOT Net overview
PPT
Net Framework overview
PPTX
CS4443 - Modern Programming Language - I Lecture (1)
PPTX
C# code sharing across the platforms
PDF
.Net overview by cetpa
PPT
.Net overview
PPT
Introduction to .NET Framework
PPTX
ASP.NET vNext
PPT
NETOverview1.ppt
PPTX
NETOverview1ppt.pptx
PPT
Net overview
PPT
.Net framework
PPT
NETOverview1.ppt c# using asp.net activeX data object and XNL
PPTX
Introduction to ASP.NET 5
.Net Core Blimey! (16/07/2015)
Raffaele Rialdi
Intro to Microsoft.NET
.net Core Blimey - Smart Devs UG
.NET Core Blimey! (dotnetsheff Jan 2016)
DOT Net overview
Net Framework overview
CS4443 - Modern Programming Language - I Lecture (1)
C# code sharing across the platforms
.Net overview by cetpa
.Net overview
Introduction to .NET Framework
ASP.NET vNext
NETOverview1.ppt
NETOverview1ppt.pptx
Net overview
.Net framework
NETOverview1.ppt c# using asp.net activeX data object and XNL
Introduction to ASP.NET 5
Ad

Recently uploaded (20)

PPTX
Monitoring Stack: Grafana, Loki & Promtail
PPTX
Advanced SystemCare Ultimate Crack + Portable (2025)
PDF
Autodesk AutoCAD Crack Free Download 2025
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
AutoCAD Professional Crack 2025 With License Key
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Designing Intelligence for the Shop Floor.pdf
PDF
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
PDF
Digital Systems & Binary Numbers (comprehensive )
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
PPTX
Patient Appointment Booking in Odoo with online payment
Monitoring Stack: Grafana, Loki & Promtail
Advanced SystemCare Ultimate Crack + Portable (2025)
Autodesk AutoCAD Crack Free Download 2025
Reimagine Home Health with the Power of Agentic AI​
AI-Powered Threat Modeling: The Future of Cybersecurity by Arun Kumar Elengov...
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Why Generative AI is the Future of Content, Code & Creativity?
AutoCAD Professional Crack 2025 With License Key
CHAPTER 2 - PM Management and IT Context
Designing Intelligence for the Shop Floor.pdf
How to Make Money in the Metaverse_ Top Strategies for Beginners.pdf
Digital Systems & Binary Numbers (comprehensive )
Internet Downloader Manager (IDM) Crack 6.42 Build 41
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Oracle Fusion HCM Cloud Demo for Beginners
WiFi Honeypot Detecscfddssdffsedfseztor.pptx
Patient Appointment Booking in Odoo with online payment
Ad

Dotnet.ppt

  • 2. outline • .NET framework • CLR • CLI, CIL, MSIL • ADO.NET, ASP.NET, MVC, webforms, razor • Mono • .NET Core • .NET Standard 2
  • 3. .NET framework • Software framework • First released early 2000’s • “consists of the common language runtime (CLR) and the .NET Framework class library (FCL)” [1] • Provides a “code execution environment” • Various runtime hosts for the CLR [2] • ASP.NET (via ISAPI filter) • Executable • Can write your own 3
  • 4. CLR • The virtual machine that manages execution of .NET programs [3] • Memory • Threads • Code trust • Type checking • pinvoke • JIT compiling to execute on current hardware 4
  • 5. 5
  • 6. .NET Framework and CLR • Framework and CLR are different [4] • Can technically run different framework versions within the same CLR version • E.g. Windows XP only supports framework up to 4.0, running 4.5 apps is theoretically possible (with some hex editing of the binary) as long as calls are restricted to methods that were the same in 4.0 (e.g., no extensions) [5] • Recent framework updates have been focused on • Optimization (including SIMD) • Accessories (stylus, touch screen, etc) • Security 6
  • 7. CLR, CLI, CIL • Common Language Infrastructure (CLI) • Open standard that describes executable code [6] • Common Intermediate Language (CIL) [7] • Aka “IL” • Formerly MSIL • Object oriented assembly language • Platform independent • A compiler takes source code and • Converts it to CIL using the CLI specification • Adds any required metadata (type information, etc) • This is an “assembly” 7
  • 8. CLR, CLI, CIL • Visual Studio tooling supports compiling C#, F#, VB.NET to CIL • Semi C++ support [8] • Language support include IronPython, ClojureCLR, IronScheme, others [10] • Can write your own compiler • C to CIL example in F# [9] • Ahead of time (AOT) compilation to avoid JIT • Has some performance benefits • No longer portable across hardware • CIL makes calling a method in another CIL library convenient • Managed by CLR, vs unsafe dll call through pinvoke 8
  • 9. CLR, CLI, CIL • The CIL is available at runtime • Metadata for the assembly needs to be available to the CLR • This is generally available at runtime as well • Can use this information to modify code at runtime • See [21] which references [22] • Useful for performance profiling, anti-debug avoidance • Other more suitable tools exist for aspect oriented programming (AOP) and mocking frameworks 9
  • 10. .NET framework • Includes a set of standard class libraries [11] • Base Class Library (BCL) [12] • Intrinsic types (e.g. string, datetime) and other base classes (e.g. FileStream) • Follows ECMA specification • Framework Class Library (FCL) • Broader library base • Depends on BCL • Provides extensions, like LINQ methods • System.Web, System.Data, System.Collections, System.Xml etc [13] • Source available at [16] • Also includes libraries for winforms, WPF, WCF, ASP.NET, etc • These other libraries are mostly still proprietary (and will probably remain so) 10
  • 11. ADO.NET, ASP.NET, MVC, webforms, razor • ADO.NET is a .NET Framework library to interact with (MSSQL) database • Entity Framework is ORM for ADO.NET • ASP.NET is a .NET framework library to serve dynamic web pages [14] • Typically hosted in IIS • Pages are “Web Forms” • Has “code behind” file and view file • Pages need to be compiled like source code 11
  • 12. ADO.NET, ASP.NET, MVC, webforms, razor • ASP.NET cont • MVC is an extension to ASP.NET that comes with Visual Studio • Implements Model-View-Controller design pattern • Methods for a page are handled in the controller, or somewhere else as defined in route setup • Can still include code in the view itself, same as before • Razor is typically used with MVC • Entire state of the webpage (“ViewState”) no longer needs to be passed around with every server call • Page is no longer re-rendered with every server call • Views are compiled on demand and can be changed at runtime • No more if (!IsPostback) // generate form else // process submitted data; 12
  • 13. ASP.NET visualized .NET Framework CLR BCL FCL ASP.NET (WebForms) ASP.NET extensions MVC Razor • Extensions available through Visual Studio, elsewhere 13
  • 14. Mono • Started as open source C# compiler and CLR [15] • “Mono” includes the mono libraries (e.g. POSIX and OS libraries), Code Execution Engine, etc • Alternative to .NET Framework • MonoDevelop is the IDE 14
  • 15. .NET core • Cross platform, open source [17] • Alternative to .NET framework • CoreCLR • Fork of FCL • ASP.NET core • Universal Windows Platform (UWP) libraries • Adds additional libraries • Missing some .NET Framework libraries • Windows forms, WPF • Adds deployment to have self contained applications (via AOT compilation) [20] 15
  • 16. • Compare to .NET Framework, or C++ 16
  • 17. .NET Standard • Set of API specifications (guidelines, not code) • Supposed to be supported by multiple frameworks [18] • Version commentary about 1.6 -> 2.0 at [19] 17
  • 18. .NET Standard • Unifying library across platforms • Mostly based on .NET Framework mscorlib (BCL, FCL, “and friends” [19]) • Binary compatible, not necessarily behavioral compatible 18
  • 19. .NET FRAMEWORK .NET CORE XAMARIN MONO WPF Windows Forms ASP.NET UWP ASP.NET Core iOS OS X Android GTK# .NET Standard BCL FCL (partial?) CLR CoreCLR Mono CLR System.Runtime * Classes Runtime • Each framework has more libraries not shown (OS specific, compatibility, etc) • Sticking to BCL and FCL is mostly cross platform, works well for simple console apps POSIX 19
  • 20. References [1] https://docs.microsoft.com/en-us/dotnet/framework/get-started/overview [2] https://msdn.microsoft.com/en-us/library/a51xd4ze(v=vs.71).aspx [3] https://en.wikipedia.org/wiki/Common_Language_Runtime [4] https://en.wikipedia.org/wiki/.NET_Framework [5] https://stackoverflow.com/questions/17499351/is-it-possible-to-run-a-net-4-5-app-on-xp [6] https://en.wikipedia.org/wiki/Common_Language_Infrastructure [7] https://en.wikipedia.org/wiki/Common_Intermediate_Language [8] https://stackoverflow.com/questions/688386/is-c-converted-into-msil [9] http://timjones.io/blog/archive/2014/04/13/writing-a-minic-to-msil-compiler-in-fsharp-part-0-introduction [10] https://en.wikipedia.org/wiki/List_of_CLI_languages [11] https://stackoverflow.com/questions/807880/bcl-base-class-library-vs-fcl-framework-class-library [12] https://en.wikipedia.org/wiki/List_of_data_types_of_the_Standard_Libraries#Base_Class_Library [13] https://msdn.microsoft.com/en-us/library/gg145045(v=vs.110).aspx [14] https://en.wikipedia.org/wiki/ASP.NET [15] https://en.wikipedia.org/wiki/Mono_(software) [16] http://referencesource.microsoft.com/ [17] https://docs.microsoft.com/en-us/dotnet/core/ [18] https://docs.microsoft.com/en-us/dotnet/standard/library [19] https://github.com/dotnet/standard/tree/master/docs/netstandard-20 [20] https://github.com/dotnet/coreclr/blob/master/Documentation/building/crossgen.md [21] https://stackoverflow.com/a/19403979/1462295 [22] https://www.codeproject.com/Articles/463508/NET-CLR-Injection-Modify-IL-Code-during-Run-time 20

Editor's Notes

  • #4: [1] https://docs.microsoft.com/en-us/dotnet/framework/get-started/overview [2] https://msdn.microsoft.com/en-us/library/a51xd4ze(v=vs.71).aspx
  • #5: [3] https://en.wikipedia.org/wiki/Common_Language_Runtime
  • #7: [4] https://en.wikipedia.org/wiki/.NET_Framework [5] https://stackoverflow.com/questions/17499351/is-it-possible-to-run-a-net-4-5-app-on-xp
  • #8: [6] https://en.wikipedia.org/wiki/Common_Language_Infrastructure [7] https://en.wikipedia.org/wiki/Common_Intermediate_Language
  • #9: [8] https://stackoverflow.com/questions/688386/is-c-converted-into-msil [9] http://timjones.io/blog/archive/2014/04/13/writing-a-minic-to-msil-compiler-in-fsharp-part-0-introduction [10] https://en.wikipedia.org/wiki/List_of_CLI_languages
  • #10: [21] https://stackoverflow.com/a/19403979/1462295 [22] https://www.codeproject.com/Articles/463508/NET-CLR-Injection-Modify-IL-Code-during-Run-time Also, CIL assembly is rather straightforward to decompile back into code (at least for C#) so legacy binary fix doesn’t seem like the ideal use case
  • #11: [11] https://stackoverflow.com/questions/807880/bcl-base-class-library-vs-fcl-framework-class-library [12] https://en.wikipedia.org/wiki/List_of_data_types_of_the_Standard_Libraries#Base_Class_Library [13] https://msdn.microsoft.com/en-us/library/gg145045(v=vs.110).aspx [16] http://referencesource.microsoft.com/
  • #12: [14] https://en.wikipedia.org/wiki/ASP.NET
  • #15: [15] https://en.wikipedia.org/wiki/Mono_(software)
  • #16: [17] https://docs.microsoft.com/en-us/dotnet/core/ [20] https://github.com/dotnet/coreclr/blob/master/Documentation/building/crossgen.md
  • #18: [18] https://docs.microsoft.com/en-us/dotnet/standard/library [19] https://github.com/dotnet/standard/tree/master/docs/netstandard-20
  • #20: iOS doesn’t allow virtual code to be run like other platforms, so there’s no JIT and everything is AOT compiled. Not sure about android or OS X.