Search⌘ K
AI Features

Porting from .NET Framework to Modern .NET

Explore the considerations and benefits of porting applications from .NET Framework to modern .NET. Understand which project types are compatible, the advantages of migration such as cross-platform deployment and cost savings, and practical guidance using tools like the .NET Upgrade Assistant and portability analyzer. This lesson helps intermediate developers make informed decisions on upgrading legacy .NET applications effectively.

If we are an existing .NET Framework developer, we may have existing applications we think we should port to modern .NET. But we should carefully consider if porting is the right choice for our code because sometimes, the best choice is not to port.

For example, we might have a complex website project that runs on .NET Framework 4.8 but is only visited by a few users. If it works and handles the visitor traffic on minimal hardware, potentially spending months porting it to a modern .NET platform could be a waste of time. But if the website currently requires many expensive Windows servers, then the cost of porting could eventually pay off if we can migrate to fewer, less costly Linux servers.

The possibility of port

Modern .NET has great support for the following types of applications on Windows, macOS, and Linux, so they are good candidates for porting:

  • ASP.NET Core websites, including Razor Pages and MVC ...