0% found this document useful (0 votes)
23 views2 pages

Lecture 2

Native AOT in .NET compiles applications into native machine code, offering benefits like faster startup, reduced memory usage, and improved performance without requiring the full .NET runtime. The evolution of .NET includes the original .NET Framework, cross-platform .NET Core, and the unified .NET 5 and later versions, with .NET 8 introducing Native AOT and enhanced security. Each version has distinct features, with LTS versions providing extended support for three years.

Uploaded by

alishba124722
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views2 pages

Lecture 2

Native AOT in .NET compiles applications into native machine code, offering benefits like faster startup, reduced memory usage, and improved performance without requiring the full .NET runtime. The evolution of .NET includes the original .NET Framework, cross-platform .NET Core, and the unified .NET 5 and later versions, with .NET 8 introducing Native AOT and enhanced security. Each version has distinct features, with LTS versions providing extended support for three years.

Uploaded by

alishba124722
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Native AOT (Ahead-of-Time Compilation) in .

NET
Native AOT (Ahead-of-Time Compilation) is a feature in .NET that compiles
applications directly into native machine code instead of relying on Just-In-Time
(JIT) compilation at runtime.

Key Benefits of Native AOT:


Faster Startup: Since there is no JIT compilation, applications start faster.
Smaller Memory Footprint: Only necessary components are included, reducing memory
usage.
Better Performance: Precompiled native code can run faster than JIT-compiled code.
No Dependency on .NET Runtime: Applications do not require the full .NET runtime to
be installed on the system.
Native AOT is particularly useful for microservices, console applications, and
high-performance scenarios.

.NET Versions Overview


.NET has evolved over the years with different versions and improvements. Here’s a
summary:

.NET Framework (2002-2019):

The original Windows-only .NET platform.


Last version: .NET Framework 4.8 (2019).
Supports Windows Forms, WPF, ASP.NET Web Forms.
.NET Core (2016-2020):

Cross-platform and modular.


Improved performance and open-source.
Last version: .NET Core 3.1 (2019, supported until 2022).
.NET 5 and Beyond (2020-Present):

Unified platform for Windows, macOS, and Linux.


Improved performance, Native AOT, and minimal APIs.
Latest version: .NET 8 (2023) with improved AI and cloud support.
Version Release Year Key Features
.NET Framework 1.0 - 4.8 2002-2019 Windows-only, legacy apps
.NET Core 1.0 - 3.1 2016-2019 Cross-platform, modular
.NET 5 2020 Unified framework, no more ".NET Core"
.NET 6 (LTS) 2021 Performance improvements, minimal APIs
.NET 7 2022 AI, better cloud & performance
.NET 8 (LTS) 2023 Native AOT, enhanced security
LTS (Long-Term Support) versions receive extended support for three years.

.NET Framework
The original Windows-only framework.
Uses CLR (Common Language Runtime) for execution.
Supports WinForms, WPF, ASP.NET Web Forms.
No new updates after .NET Framework 4.8.
.NET Core
Cross-platform (Windows, Linux, macOS).
Supports microservices, cloud-based applications.
Uses CoreCLR instead of traditional CLR.
Last version: .NET Core 3.1, replaced by .NET 5+.
.NET (Modern .NET - .NET 5 and later)
A unified platform that combines .NET Framework and .NET Core.
Supports desktop, web, cloud, mobile, and AI applications.
Latest version: .NET 8 (2023), with improvements in performance, security, and AOT
compilation.
Intermediate Code (IL/MSIL - Intermediate Language)
.NET languages (C#, VB.NET, F#) do not compile directly to machine code.
Instead, they compile into MSIL (Microsoft Intermediate Language).
The Common Language Runtime (CLR) then JIT (Just-In-Time) compiles the IL code into
machine code at runtime.
With Native AOT, IL is skipped, and applications compile directly into native code.

You might also like