5.0.17

Latest release in branch 5.0
Released 3 years ago (May 10, 2022)

Software .NET
Branch 5.0
Status
End of life
End of life May 10, 2022
First official release version 5.0.0
First official release date 5 years ago (November 10, 2020)
Release notes https://github.com/dotnet/core/blob/main/release-notes/5.0/5.0.17/5.0.17.md
Source code https://github.com/dotnet/core/tree/v5.0.17
Documentation https://learn.microsoft.com/en-us/aspnet/core/?view=aspnetcore-5.0
Download https://dotnet.microsoft.com/en-us/download/dotnet/5.0
.NET 5.0 Releases View 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

Version Release date Runtime SDK Security
5.0.17 3 years ago
(May 10, 2022)
5.0.17 5.0.408 has security advisories
5.0.16 4 years ago
(April 12, 2022)
5.0.16 5.0.407
5.0.15 4 years ago
(March 08, 2022)
5.0.15 5.0.406 has security advisories
5.0.14 4 years ago
(February 08, 2022)
5.0.14 5.0.405 has security advisories
5.0.13 4 years ago
(December 14, 2021)
5.0.13 5.0.404 has security advisories
5.0.12 4 years ago
(November 08, 2021)
5.0.12 5.0.403
5.0.11 4 years ago
(October 12, 2021)
5.0.11 5.0.402 has security advisories
5.0.10 4 years ago
(September 14, 2021)
5.0.10 5.0.401
5.0.9 4 years ago
(August 10, 2021)
5.0.9 5.0.400 has security advisories
5.0.8 4 years ago
(July 13, 2021)
5.0.8 5.0.302
5.0.7 4 years ago
(June 08, 2021)
5.0.7 5.0.301 has security advisories
5.0.6 4 years ago
(May 25, 2021)
5.0.6 5.0.300 has security advisories
5.0.5 5 years ago
(April 06, 2021)
5.0.5 5.0.202
5.0.4 5 years ago
(March 09, 2021)
5.0.4 5.0.201 has security advisories
5.0.3 5 years ago
(March 02, 2021)
5.0.3 5.0.200 has security advisories
5.0.2 5 years ago
(January 12, 2021)
5.0.2 5.0.102 has security advisories
5.0.1 5 years ago
(December 08, 2020)
5.0.1 5.0.101
5.0.0 5 years ago
(November 10, 2020)
5.0.0 5.0.100
5.0.0-rc.2 5 years ago
(October 13, 2020)
5.0.0-rc.2.20475.5 5.0.100-rc.2.20479.15
5.0.0-rc.1 5 years ago
(September 14, 2020)
5.0.0-rc.1.20451.14 5.0.100-rc.1.20452.10
5.0.0-preview.8 5 years ago
(August 25, 2020)
5.0.0-preview.8.20407.11 5.0.100-preview.8.20417.9
5.0.0-preview.7 5 years ago
(July 21, 2020)
5.0.0-preview.7.20364.11 5.0.100-preview.7.20366.6
5.0.0-preview.6 5 years ago
(June 25, 2020)
5.0.0-preview.6.20305.6 5.0.100-preview.6.20318.15
5.0.0-preview.5 5 years ago
(June 10, 2020)
5.0.0-preview.5.20278.1 5.0.100-preview.5.20279.10
5.0.0-preview.4 5 years ago
(May 19, 2020)
5.0.0-preview.4.20251.6 5.0.100-preview.4.20258.7
5.0.0-preview.3 5 years ago
(April 23, 2020)
5.0.0-preview.3.20214.6 5.0.100-preview.3.20216.6
5.0.0-preview.2 6 years ago
(April 02, 2020)
5.0.0-preview.2.20160.6 5.0.100-preview.2.20176.6
5.0.0-preview.1 6 years ago
(March 16, 2020)
5.0.0-preview.1.20120.5 5.0.100-preview.1.20155.7