.NET 5 has reached End of Life

.NET 5 has reached End of Life
May 5, 2022
4 minutes read

In recent years, especially with the pandemic, everything has been moving very fast. The release of .NET 5 by Microsoft was only a year and a half ago (specifically on November 10, 2020) and we have to say goodbye to it.

Sadly, Microsoft’s deadline for developers to migrate to .NET 6 is ending and support for .NET 5 ends on May 10, 2022 (yes, in a couple of days).

bytehide.com
.NET Supported versions (Source: Microsoft)

On the bright side, the new version of the Framework: .NET 6, will bring LTS (long term support) and according to Microsoft, it will last until the end of 2024.

What will happen with .NET 5 projects?

One of the reasons why Microsoft is going to stop supporting .NET 5 (and other older versions) is because those versions must be signed with algorithms and currently they are signed with the SHA-1 algorithm. This algorithm has been vulnerable for some time and can affect from document signing, to HTTPS certificates, to backup systems and Version Controls (git).

As a curious fact, although this happened a couple of years ago, Google managed to break this algorithm by managing to have 2 different PDF files with the same Hash.

bytehide.com
Attack proof (Source: https://shattered.io/)

At first nothing will happen, but you will no longer receive security updates and support from Microsft. It is not the end of .NET 5 because this date simply refers to updates, patches, technical support or security fixes but this could leave many applications exposed to new (and not so new) vulnerabilities.

That is why any developer who has projects in .NET 3.1 or .NET 5, should migrate them to .NET 6 in order to continue receiving all the updates and support from Microsoft.

What does .NET 6 bring?

The most expected from Microsoft, which has been trying to achieve this for years, is to make .NET a unified platform. And now according to Microsoft, .NET 6 will bring:

Unified platform across browser, cloud, desktop, IoT, and mobile apps, all using the same .NET Libraries and the ability to share code easily.

bytehide.com
Unified and extended platform (Source: Microsoft)

In addition, the console app project template is reduced to just 1 line, which makes it easier to create small programs. In .NET 5 was:

Loading code snippet...

And with the arrival of .NET 6, this is reduced to just 1 line of code:

Loading code snippet...

📚 Featured: You can learn more about console app template in the original Microsoft article: .NET 6 C# console app template generates top-level statements

In addition, the new version 6 of the .NET Framework comes with a new language version: C# 10 (although previews of C# 11 are already being released). This version comes with many new features:

  • File-scoped namespace declaration
  • Constant interpolated strings
  • Extended Property Patterns

and more!

Not only that, but it also comes with the new version of its IDE: Visual Studio 2022. This new version of Visual Studio brings great news, now its 64-bit version is available. This means that the main process devenv.exe no longer has the limitation it had in the 32-bit version (4GB in memory).

Microsoft showed how this new version is capable of loading a solution of more than 300,000 files.

bytehide.com
Visual Studio 2022 64-bit(Source: Microsoft)

Let’s not forget , the feature that allows you to make changes to the debugging project without having to stop and start it again

How to upgrade to .NET 6?

Microsoft strongly recommends upgrading applications to .NET 6 and for that purpose leaves this article on how to do it:

After saying goodbye to .NET 5 and enjoying .NET 6, we are still waiting for all the news and updates from Microsoft about .NET 7. Will they surprise us? Who knows.

You May Also Like

Optional Parameters in C#: What You Need to Know

Optional Parameters in C#: What You Need to Know

Programming in C# often requires flexibility and simplicity ...

What is Lock Keyword in C#? Main Usages

What is Lock Keyword in C#? Main Usages

IndexUnderstanding the C# Lock Keyword Can’t tell a lock fro...

Enumerate in C#: Detailed Explanation

Enumerate in C#: Detailed Explanation

Desperate to decode the mystery that is enumeration in C#? I...

Creating a JSON Class in C#: Detailed Guide

Creating a JSON Class in C#: Detailed Guide

In the world of application development, manipulation of dat...

Static Class in C#: How to Use It?

Static Class in C#: How to Use It?

Hello there, future C# aficionado! It’s time to roll down th...

DateTime Formatting in C#: Dev Guide

DateTime Formatting in C#: Dev Guide

Have you ever gotten frustrated handling dates and times in ...

Leave a reply

Loading comment form...