
.NET 5 is the release where Microsoft's development platform changed its name and its direction. Before it there were two .NETs: the Windows-only .NET Framework and the cross-platform .NET Core. After it there was one .NET, with a new version every November. .NET 5 itself is no longer supported, so if you still run it, this article is mainly about why it mattered and how to move off it safely.
We cover what .NET 5 is, what it introduced, why it is out of support, and how to upgrade a .NET 5 application to a current long-term support release.
What is .NET 5?
.NET 5 is a version of Microsoft's open-source, cross-platform .NET platform, released on 10 November 2020. Technically it is the successor of .NET Core 3.1: the same runtime, libraries and tooling, continued under a new name.
Microsoft announced the plan on 6 May 2019. The name made two points. The version number skipped 4, so it would not be confused with .NET Framework 4.x, which Microsoft had said would end at 4.8 as its last major version. And the word "Core" was dropped, because from now on there would be just one .NET. ASP.NET Core and Entity Framework Core kept "Core" in their names to avoid confusion with the older ASP.NET and EF6.
.NET 5 was a "Current" release, not a long-term support (LTS) release. That meant support ended six months after the next version shipped: .NET 6 arrived on 8 November 2021, and .NET 5 reached end of support on 10 May 2022 with its last patch, 5.0.17. Since then it has received no security fixes.
For the full story of how .NET Core became the unified .NET, see our .NET Core article; this one focuses on the .NET 5 release itself.
How .NET 5 works
Under the hood .NET 5 works like every modern .NET version. Code in C#, F# or Visual Basic is compiled to intermediate language, the CoreCLR runtime compiles it to native code at run time, and the dotnet command-line tools build, test and publish applications on Windows, Linux and macOS.
What changed was how projects target the platform. .NET 5 introduced the net5.0 target framework moniker, replacing both netcoreapp3.1 for applications and, for new code, .NET Standard for shared libraries. Windows-specific APIs moved behind operating-system-specific targets such as net5.0-windows, so a project states openly when it needs Windows. Every later version follows the same pattern: net6.0, net8.0, net10.0.
Key features
- One name and one target framework for cross-platform .NET, ending the split between .NET Core and .NET Standard for new projects.
- C# 9, with records, init-only properties, top-level statements and improved pattern matching, and F# 5.
- Performance work across the runtime, garbage collector, JSON serialisation and networking.
- Single-file applications that bundle an app and its dependencies into one executable.
- Windows Arm64 support, alongside the existing Linux and macOS targets.
- ASP.NET Core 5 with improvements to Blazor, and EF Core 5 with many-to-many relationships without an explicit join entity and split queries in Entity Framework Core.
Part of the original unification plan, bringing Xamarin's mobile stack into the same platform, did not land in .NET 5. It arrived later with .NET MAUI on .NET 6 and newer.
Where .NET 5 is used
New projects should not start on .NET 5. Where it still appears, it is usually in one of these places:
- Applications migrated from .NET Framework or .NET Core 3.1 in 2021 and not upgraded since.
- Internal services and back-office tools that work, have few changes, and were never put on an upgrade schedule.
- Container images built on the .NET 5 base images, which have not been updated since 2022.
In each case the application is running on a runtime that no longer receives security patches.
When to choose .NET 5, and when not to
There is no good reason to choose .NET 5 for new work. Every capability it introduced is available in later versions, which are faster, add features and are supported.
Keeping an existing .NET 5 application is a risk when:
- It is reachable from the internet or handles personal, financial or health data. Vulnerabilities found since May 2022 are not fixed for .NET 5.
- You are subject to security audits or compliance frameworks that require supported software.
- You want to update dependencies. Many current NuGet packages no longer target
net5.0.
The only realistic reason to stay a little longer is a planned migration that is already under way.
.NET 5 and its alternatives
The alternative to .NET 5 is a newer .NET version. The official support policy lists:
| Version | Released | Type | End of support |
|---|---|---|---|
| .NET 5 | 10 Nov 2020 | Current | 10 May 2022 |
| .NET 6 | 8 Nov 2021 | LTS | 12 Nov 2024 |
| .NET 8 | 14 Nov 2023 | LTS | 10 Nov 2026 |
| .NET 10 | 11 Nov 2025 | LTS | 14 Nov 2028 |
| .NET 11 | 10 Nov 2026 | STS | 14 Nov 2028 |
Even-numbered versions are LTS releases with three years of support; odd-numbered ones are standard-term support releases with two. For a system that should stay put for a while, .NET 10 is the natural target. .NET 6 and .NET 8 are also out of support, so upgrading to either of them would only start the same problem again.
Upgrading from .NET 5
Moving from .NET 5 to .NET 10 is usually much easier than the earlier jump from .NET Framework to .NET Core, because the runtime and APIs are the same family. A typical path:
- Inventory. List the projects, their NuGet packages and the infrastructure around them: base Docker images, CI agents,
global.jsonfiles and hosting plans. - Retarget. Change
TargetFrameworkfromnet5.0tonet10.0and update Microsoft packages, such as ASP.NET Core and EF Core, to the matching major version. - Update third-party packages. Most libraries support current .NET; abandoned ones need a replacement.
- Work through breaking changes. Microsoft publishes a breaking-changes list for every version from 6 to 10. Most affect edge cases; ASP.NET Core hosting, EF Core query behaviour and obsolete APIs are the usual places to look.
- Test and measure. Run the test suite, compare performance and memory with the old build, and deploy behind a feature flag or to a staging slot first.
Microsoft's GitHub Copilot app modernization agent in Visual Studio, the successor to the now-deprecated .NET Upgrade Assistant, can automate parts of retargeting and package updates. If you still run .NET 5 or older .NET Core in production, our product modernization team can plan and carry out the move to a supported .NET version.
Frequently asked questions
When was .NET 5 released?
.NET 5 was released on 10 November 2020. It was announced in May 2019 as the next step after .NET Core 3.x.
Is .NET 5 still supported?
No. .NET 5 reached end of support on 10 May 2022, and its last update was 5.0.17. It no longer receives security fixes, so applications still running on it should be upgraded.
What is the difference between .NET Core and .NET 5?
.NET 5 is the version that came after .NET Core 3.1. It is the same platform under a new name: Microsoft dropped "Core" and skipped version 4 to signal that there would be one .NET going forward and to avoid confusion with .NET Framework 4.x.
Is .NET 6 obsolete?
Yes, in support terms. .NET 6 was an LTS release, and its support ended on 12 November 2024. Like .NET 5, it no longer receives security updates.
Which version of .NET should I use?
For new projects and upgrades, use the latest LTS release, which is .NET 10, supported until November 2028. Choose an STS release such as .NET 11 only if you plan to upgrade again within its two-year support window.
Keep reading
The articles that follow this one.



