Stable Release in branch 5.0
5.0.17
Released 10 May 2022
(4 years ago)
Software.NET
Version5.0
Status
End of life
Initial release5.0.0
10 Nov 2020
(5 years ago)
Latest release5.0.17
10 May 2022
(4 years ago)
End of life10 May 2022
(Ended 4 years ago)
Release noteshttps://github.com/dotnet/core/blob/main/release-notes/5.0/5.0.17/5.0.17.md
Source codehttps://github.com/dotnet/core/tree/v5.0.17
Documentationhttps://learn.microsoft.com/en-us/aspnet/core/?view=aspnetcore-5.0
Downloadhttps://dotnet.microsoft.com/en-us/download/dotnet/5.0
.NET 5.0 ReleasesView full list

What Is New in .NET 5.0

.NET 5.0 unifies the .NET platform, bringing together .NET Core, .NET Framework, and Xamarin into a single base for modern development. This release focuses on performance, new language capabilities in C# 9, and expanded platform support.

Category Key Changes
Platform & Unification Single, unified .NET 5.0 platform and runtime. Replaces .NET Standard for app-level code.
Languages C# 9 and F# 5 with new features like records and top-level statements.
Performance Major improvements in GC, System.Text.Json, and containers.
APIs & Libraries New JSON APIs, enhanced regular expressions, and HTTP/2 support.
Application Types Windows Desktop (WinForms, WPF), Web, Cloud, Mobile (via Xamarin), and more.

How does .NET 5 unify the development platform?

.NET 5 merges the key branches of .NET into one base platform. You now use the same SDK, runtime, and libraries to build Windows desktop apps, web services, mobile apps with Xamarin, and cloud-native applications.

In practice, this means you can share code more easily across different application types. It also simplifies the long-term roadmap, as there's now one primary .NET going forward instead of multiple, sometimes divergent, frameworks.

What are the major performance wins in .NET 5?

Garbage Collection (GC) saw significant optimizations, reducing pause times and improving throughput. The System.Text.Json serializer got much faster for both serialization and deserialization, making it a strong contender for high-performance scenarios.

Containerized applications benefit from better memory management when running in environments with memory limits. The runtime is also more efficient overall, with countless small optimizations across the base class libraries that add up to substantial gains.

What new C# 9 features should I start using?

Records are the headline feature, providing a concise syntax for immutable reference types with built-in value-based equality. They're perfect for data-carrying objects like DTOs.

public record Person(string FirstName, string LastName);

Top-level statements simplify the program structure for small apps and scripts by removing boilerplate. Pattern matching enhancements and new relational patterns also make conditional logic more expressive and powerful.

What's new for building web and cloud apps?

ASP.NET Core in .NET 5 includes performance boosts and new features. HTTP/2 support is now fully enabled for gRPC services and HttpClient, improving communication efficiency for microservices.

For cloud-native development, the runtime is more container-aware, and the reduced footprint of applications helps with deployment density and startup time on platforms like Kubernetes.

Are there any notable low-level or API improvements?

Yes, the System.Text.Json namespace gained more features, narrowing the gap with Newtonsoft.Json, including support for immutable classes and deserializing with constructors.

Regular expressions received a complete overhaul with a new engine that offers significant performance improvements, especially for complex patterns. New Half and Int128/UInt128 types provide support for lower-precision and very large integers.

FAQ

Is .NET 5 the next version of .NET Framework or .NET Core?
.NET 5 is the direct successor to .NET Core 3.1. It's the next major release in the unified .NET platform, not a new version of the classic .NET Framework, which remains at version 4.8.

Should I use .NET 5 or .NET Standard for new libraries?
For new libraries, target .NET 5. While .NET Standard 2.0/2.1 is still supported for compatibility, .NET 5 is now the primary target for future-facing development and offers access to the latest APIs.

Can I upgrade my existing .NET Core 3.1 app to .NET 5?
Generally, yes. The upgrade path from .NET Core 3.1 to .NET 5 is designed to be straightforward. You'll need to update the target framework in your project file and potentially address a small number of breaking changes.

What happened to WinForms and WPF? Are they in .NET 5?
Yes, Windows Desktop applications built with WinForms and WPF are fully supported in .NET 5 and are included as part of the Windows SDK. They continue to be Windows-only technologies.

Is .NET 5 a Long-Term Support (LTS) release?
No, .NET 5 is a Standard Term Support (STS) release. It was supported for approximately 18 months. The next LTS release after .NET Core 3.1 is .NET 6.

Releases In Branch 5.0

VersionRelease dateRuntimeSDKSecurity
5.0.1710 May 2022
(4 years ago)
5.0.175.0.408 has security advisories
5.0.1612 Apr 2022
(4 years ago)
5.0.165.0.407
5.0.1508 Mar 2022
(4 years ago)
5.0.155.0.406 has security advisories
5.0.1408 Feb 2022
(4 years ago)
5.0.145.0.405 has security advisories
5.0.1314 Dec 2021
(4 years ago)
5.0.135.0.404 has security advisories
5.0.1208 Nov 2021
(4 years ago)
5.0.125.0.403
5.0.1112 Oct 2021
(4 years ago)
5.0.115.0.402 has security advisories
5.0.1014 Sep 2021
(4 years ago)
5.0.105.0.401
5.0.910 Aug 2021
(4 years ago)
5.0.95.0.400 has security advisories
5.0.813 Jul 2021
(5 years ago)
5.0.85.0.302
5.0.708 Jun 2021
(5 years ago)
5.0.75.0.301 has security advisories
5.0.625 May 2021
(5 years ago)
5.0.65.0.300 has security advisories
5.0.506 Apr 2021
(5 years ago)
5.0.55.0.202
5.0.409 Mar 2021
(5 years ago)
5.0.45.0.201 has security advisories
5.0.302 Mar 2021
(5 years ago)
5.0.35.0.200 has security advisories
5.0.212 Jan 2021
(5 years ago)
5.0.25.0.102 has security advisories
5.0.108 Dec 2020
(5 years ago)
5.0.15.0.101
5.0.010 Nov 2020
(5 years ago)
5.0.05.0.100
5.0.0-rc.213 Oct 2020
(5 years ago)
5.0.0-rc.2.20475.55.0.100-rc.2.20479.15
5.0.0-rc.114 Sep 2020
(5 years ago)
5.0.0-rc.1.20451.145.0.100-rc.1.20452.10
5.0.0-preview.825 Aug 2020
(5 years ago)
5.0.0-preview.8.20407.115.0.100-preview.8.20417.9
5.0.0-preview.721 Jul 2020
(6 years ago)
5.0.0-preview.7.20364.115.0.100-preview.7.20366.6
5.0.0-preview.625 Jun 2020
(6 years ago)
5.0.0-preview.6.20305.65.0.100-preview.6.20318.15
5.0.0-preview.510 Jun 2020
(6 years ago)
5.0.0-preview.5.20278.15.0.100-preview.5.20279.10
5.0.0-preview.419 May 2020
(6 years ago)
5.0.0-preview.4.20251.65.0.100-preview.4.20258.7
5.0.0-preview.323 Apr 2020
(6 years ago)
5.0.0-preview.3.20214.65.0.100-preview.3.20216.6
5.0.0-preview.202 Apr 2020
(6 years ago)
5.0.0-preview.2.20160.65.0.100-preview.2.20176.6
5.0.0-preview.116 Mar 2020
(6 years ago)
5.0.0-preview.1.20120.55.0.100-preview.1.20155.7