Latest in branch 6.0 (LTS)
6.0.36
Released 12 Nov 2024
(1 year ago)
Software.NET
Version6.0 (LTS)
StatusLTS
End of life
Initial release6.0.0
08 Nov 2021
(4 years ago)
Latest release6.0.36
12 Nov 2024
(1 year ago)
End of life12 Nov 2024
(Ended 1 year, 6 months ago)
Release noteshttps://github.com/dotnet/core/blob/main/release-notes/6.0/6.0.36/6.0.36.md
Source codehttps://github.com/dotnet/core/tree/v6.0.36
Documentationhttps://learn.microsoft.com/en-us/aspnet/core/?view=aspnetcore-6.0
Downloadhttps://dotnet.microsoft.com/en-us/download/dotnet/6.0
.NET 6.0 (LTS) ReleasesView full list

What Is New in .NET 6.0

.NET 6 unifies the SDK, base libraries, and runtime across mobile, desktop, IoT, and cloud apps. It's a Long Term Support (LTS) release with a focus on performance and productivity.

Category Key Highlights
Platform & Tooling Unified SDK, Hot Reload, C# 10, Minimal APIs
Performance File I/O, HTTP, JSON, GC, and AOT compilation improvements
Languages C# 10 and F# 6 with new features and syntax
APIs & Libraries New DateOnly/TimeOnly types, HTTP/3, JSON source generators
Cloud & Containers Dynamic PGO, dotnet monitor, enhanced container support

How does .NET 6 improve developer productivity?

The new SDK and tooling features are built for a faster, more streamlined workflow. Hot Reload lets you modify your source code while the app is running without restarting it, which is a huge time-saver during UI development and debugging.

Minimal APIs reduce the boilerplate code needed for HTTP services. A new project template for web APIs now uses this concise syntax, making it much quicker to get a service up and running.

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapGet("/", () => "Hello World!");

app.Run();

What performance gains can I expect in .NET 6?

Performance is a central theme, with optimizations across the stack. The runtime sees improvements in JIT compilation, garbage collection, and thread pooling. Dynamic Profile-Guided Optimization (PGO) can now optimize code dynamically based on runtime usage patterns.

Libraries are also faster. System.Text.Json has new source generators for high-performance serialization, and there are significant speed improvements in file I/O and HTTP processing, including full support for HTTP/3.

What are the new C# 10 features I should use?

C# 10 introduces several features that promote cleaner, more declarative code. Global using directives and file-scoped namespaces help reduce clutter at the top of your files. This makes the codebase less verbose and easier to read.

Record structs allow you to define value-type records, and improvements to lambda expressions make them more flexible. The new interpolated string handlers provide a way to build strings more efficiently, which is great for performance-critical logging or string building.

// File-scoped namespace
namespace MyCompany.MyApp;

// Global using in a separate file
global using System;

// Record struct
public readonly record struct Point(double X, double Y);

Which new APIs will simplify common tasks?

New types like DateOnly and TimeOnly solve the long-standing problem of representing a date without a time or a time without a date. This is incredibly useful for applications dealing with birthdays, schedules, or business hours, as it avoids the confusion of DateTime with a time component set to midnight.

The Parallel.ForEachAsync method provides a built-in way to execute asynchronous loops in parallel. The WaitAsync method for tasks now accepts a timeout, making it much easier to add cancellation and timeout logic to async operations.

// Representing a birth date
DateOnly birthDate = new DateOnly(1980, 1, 1);

// Parallel async loops
await Parallel.ForEachAsync(urls, async (url, cancellationToken) =>
{
    await DownloadAsync(url, cancellationToken);
});

// Timeout on a task
await someAsyncTask.WaitAsync(TimeSpan.FromSeconds(30));

FAQ

Is .NET 6 an LTS release?
Yes, .NET 6 is a Long Term Support (LTS) release. This means it will receive free support and patches from Microsoft for three years, making it a stable choice for production applications.

What is the difference between Hot Reload and Edit and Continue?
Hot Reload is a broader feature that works with a wider range of app types (like web UI) and allows for more types of code changes without a restart. Edit and Continue is more focused on debugging scenarios in Visual Studio.

Do I have to use Minimal APIs?
No, Minimal APIs are optional. The traditional MVC-based approach with controllers is still fully supported. Minimal APIs offer a lighter-weight alternative for simpler services.

How do I use the new JSON source generator?
You create a partial class that derives from JsonSerializerContext and use the JsonSerializable attribute. This pre-generates serialization code at build time for a significant performance boost.

Can I use HTTP/3 in my ASP.NET Core app?
Yes, HTTP/3 is supported in .NET 6. It must be enabled in your application and also supported by both the client and the server (like Kestrel on Windows Server 2022 or Linux with the appropriate libraries).

Releases In Branch 6.0 (LTS)

VersionRelease dateRuntimeSDKSecurity
6.0.3612 Nov 2024
(1 year ago)
6.0.366.0.428
6.0.3508 Oct 2024
(1 year ago)
6.0.356.0.427 has security advisories
6.0.3313 Aug 2024
(1 year ago)
6.0.336.0.425
6.0.3209 Jul 2024
(1 year ago)
6.0.326.0.424 has security advisories
6.0.3128 May 2024
(2 years ago)
6.0.316.0.423 has security advisories
6.0.3014 May 2024
(2 years ago)
6.0.306.0.422
6.0.2909 Apr 2024
(2 years ago)
6.0.296.0.421 has security advisories
6.0.2812 Mar 2024
(2 years ago)
6.0.286.0.420
6.0.2713 Feb 2024
(2 years ago)
6.0.276.0.419 has security advisories
6.0.2609 Jan 2024
(2 years ago)
6.0.266.0.418 has security advisories
6.0.2514 Nov 2023
(2 years ago)
6.0.256.0.417 has security advisories
6.0.2424 Oct 2023
(2 years ago)
6.0.246.0.416 has security advisories
6.0.2310 Oct 2023
(2 years ago)
6.0.236.0.415 has security advisories
6.0.2212 Sep 2023
(2 years ago)
6.0.226.0.414 has security advisories
6.0.2108 Aug 2023
(2 years ago)
6.0.216.0.413 has security advisories
6.0.2011 Jul 2023
(2 years ago)
6.0.206.0.412 has security advisories
6.0.1922 Jun 2023
(2 years ago)
6.0.196.0.411
6.0.1813 Jun 2023
(2 years ago)
6.0.186.0.410 has security advisories
6.0.1611 Apr 2023
(3 years ago)
6.0.166.0.408 has security advisories
6.0.1514 Mar 2023
(3 years ago)
6.0.156.0.407
6.0.1414 Feb 2023
(3 years ago)
6.0.146.0.406 has security advisories
6.0.1310 Jan 2023
(3 years ago)
6.0.136.0.405 has security advisories
6.0.1213 Dec 2022
(3 years ago)
6.0.126.0.404 has security advisories
6.0.1108 Nov 2022
(3 years ago)
6.0.116.0.403
6.0.1011 Oct 2022
(3 years ago)
6.0.106.0.402 has security advisories
6.0.913 Sep 2022
(3 years ago)
6.0.96.0.401 has security advisories
6.0.809 Aug 2022
(3 years ago)
6.0.86.0.400 has security advisories
6.0.712 Jul 2022
(3 years ago)
6.0.76.0.302
6.0.614 Jun 2022
(3 years ago)
6.0.66.0.301 has security advisories
6.0.510 May 2022
(4 years ago)
6.0.56.0.300 has security advisories
6.0.412 Apr 2022
(4 years ago)
6.0.46.0.202
6.0.308 Mar 2022
(4 years ago)
6.0.36.0.201 has security advisories
6.0.208 Feb 2022
(4 years ago)
6.0.26.0.200 has security advisories
6.0.114 Dec 2021
(4 years ago)
6.0.16.0.101 has security advisories
6.0.008 Nov 2021
(4 years ago)
6.0.06.0.100
6.0.0-rc.212 Oct 2021
(4 years ago)
6.0.0-rc.2.21480.56.0.100-rc.2.21505.57
6.0.0-rc.114 Sep 2021
(4 years ago)
6.0.0-rc.1.21451.136.0.100-rc.1.21463.6
6.0.0-preview.710 Aug 2021
(4 years ago)
6.0.0-preview.7.21377.196.0.100-preview.7.21379.14
6.0.0-preview.614 Jul 2021
(4 years ago)
6.0.0-preview.6.21352.126.0.100-preview.6.21355.2
6.0.0-preview.517 Jun 2021
(4 years ago)
6.0.0-preview.5.21301.56.0.100-preview.5.21302.13
6.0.0-preview.425 May 2021
(5 years ago)
6.0.0-preview.4.21253.76.0.100-preview.4.21255.9
6.0.0-preview.308 Apr 2021
(5 years ago)
6.0.0-preview.3.21201.46.0.100-preview.3.21202.5
6.0.0-preview.211 Mar 2021
(5 years ago)
6.0.0-preview.2.21154.66.0.100-preview.2.21155.3
6.0.0-preview.117 Feb 2021
(5 years ago)
6.0.0-preview.1.21102.126.0.100-preview.1.21103.13