Frameworks & Languages
Moving From .NET Framework to Modern .NET: A Practical Upgrade Path
Many business applications still run on .NET Framework 4.x. Here is a practical path to modern .NET: choosing the target version, assessing Web Forms, WCF and MVC code, and migrating a live application route by route.

A lot of important business software still runs on .NET Framework 4.x: ASP.NET MVC and Web Forms sites, WCF services and Windows services written ten or fifteen years ago. .NET Framework 4.8.1 is still supported as part of Windows, so nothing breaks tomorrow. But it receives no new features, it only runs on Windows, and libraries, hosting options and developers are steadily moving to modern .NET. Every year of delay makes the eventual move larger.
Moving these applications forward is a regular part of our .NET and ASP.NET Core development work. This article sets out a practical upgrade path: what to target, how to assess the application, and how to migrate a live system in steps rather than one risky rewrite.
Pick the Right Target Version
Modern .NET has a predictable release cycle: a new major version every November, with even-numbered releases supported for three years as long-term support (LTS) and odd-numbered ones for a shorter period. .NET 8 and .NET 9 both reached end of support in November 2026, so a migration today should target .NET 10, the current LTS release, supported until November 2028. Moving from one modern .NET version to the next is usually a modest piece of work; the big step is leaving .NET Framework.
Assess What You Actually Have
The effort depends far more on which parts of .NET Framework the application uses than on its size. We sort each project into one of these groups:
- Class libraries with business logic. Usually the easiest part. Many compile on modern .NET with few changes once their dependencies are updated.
- ASP.NET MVC 5 and Web API 2. These map closely to ASP.NET Core MVC and minimal APIs. Controllers and views carry over with changes; the plumbing around them, such as
Global.asax, HTTP modules andweb.configsettings, is rewritten as middleware and configuration. - Web Forms. There is no Web Forms in modern .NET. Pages are rebuilt, typically as Razor Pages or Blazor, so this is a rewrite of the user interface even when the business logic beneath it is reused.
- WCF services. WCF clients are supported on modern .NET; server-side WCF is not part of it. The community CoreWCF project hosts many existing services with limited changes, or the service can be redesigned as REST or gRPC if its consumers can move too.
- Data access. Entity Framework 6 runs on modern .NET, which means data access does not have to move at the same time as everything else. Moving to EF Core can follow later.
- Windows-specific pieces. Registry access,
System.Drawing, Windows authentication and COM components need checking, particularly if the goal is to run on Linux or in containers.
Microsoft's upgrade tooling in Visual Studio and its API compatibility analysers help with this inventory by flagging APIs that do not exist on modern .NET. They speed up the mechanical work, but they do not make the architectural decisions for you.
Prepare the Codebase
- Convert to SDK-style project files and move from
packages.configtoPackageReference. This can be done while still targeting .NET Framework. - Update NuGet packages to versions that support both .NET Framework and modern .NET, and replace any that have been abandoned.
- Multi-target shared libraries so they build for both
net48andnet10.0, or target .NET Standard 2.0 where that is enough. The old and new applications can then use exactly the same business logic during the transition. - Add tests around critical behaviour, especially calculations, integrations and anything involving money, dates or permissions.
Migrate the Web Application Incrementally
For a large ASP.NET application, Microsoft documents an incremental approach based on the strangler fig pattern, and it is the one we generally follow. A new ASP.NET Core application is placed in front of the old one. It uses YARP, Microsoft's reverse proxy library, to forward any request it does not yet handle to the existing .NET Framework application. Routes are then moved to ASP.NET Core one at a time.
The System.Web adapters library helps the two applications cooperate: it lets code written against System.Web APIs run on ASP.NET Core with fewer changes, and it can share session state and authentication between the old and new applications, so users do not notice which one served a page. When the last route has moved, the old application and the proxy rule are removed.
Smaller applications can often be converted in a single pass instead, which is quicker overall. The decision comes down to how long the application can sit on a branch while the work is done.
Changes You Will Meet Along the Way
- Configuration moves from
web.configandConfigurationManagertoappsettings.json, environment variables and the options pattern, with secrets in a proper store such as Azure Key Vault. - Dependency injection is built in, so service locators and static helpers are gradually replaced with injected services.
- Authentication uses ASP.NET Core Identity, cookie or JWT authentication, or Entra ID, rather than Forms Authentication or OWIN middleware.
- Background work in Windows services becomes worker services using hosted services, which can run as a Windows service, a Linux daemon or a container.
- Logging moves to the built-in logging abstractions, which plug into Application Insights, OpenTelemetry or Serilog.
Hosting After the Move
ASP.NET Core still runs well on IIS, so the first release can go to the same servers. Once the application no longer depends on Windows, it can run in Linux containers or on Azure App Service, which is often cheaper and simpler to scale. That step can be part of a wider cloud migration, and our Docker and Kubernetes team can set up the container build and deployment pipeline. For the trade-offs between moving an application as it is and modernising it on the way, see lift and shift or re-platform.
If you are weighing up whether .NET is still the right platform at all, our earlier article on when .NET is the right choice covers that decision.
Where to Start
The first step is a short technical assessment: project types, dependencies, Windows-specific code and test coverage, ending with a recommended route and an order of work. While the migration runs, the existing application can stay under a maintenance and support plan so fixes continue. If you have a .NET Framework application that needs to move forward, get in touch.
Frequently Asked Questions
Is .NET Framework 4.8 going to stop working?
Not soon. .NET Framework 4.8.1 is a component of Windows and is supported for as long as the Windows versions it ships with. The problem is not sudden failure but stagnation: no new features, Windows-only hosting, fewer maintained libraries and a shrinking pool of developers who want to work on it.
Can we move to modern .NET without rewriting our Web Forms application?
The business logic and data access can usually be reused, but the Web Forms pages themselves cannot, because modern .NET does not include Web Forms. The user interface is rebuilt in Razor Pages or Blazor, ideally screen by screen behind a proxy so the application stays live throughout.
Do we have to move from Entity Framework 6 to EF Core at the same time?
No. Entity Framework 6 runs on modern .NET, so data access can stay as it is while the rest of the application moves. Migrating to EF Core later brings better performance and active development, but separating the two steps reduces risk considerably.
Will our application need to move to Linux or the cloud?
Not necessarily. ASP.NET Core runs on IIS and Windows Server, so the first release can go to your existing servers. Running on Linux containers or a managed cloud service becomes an option once Windows-specific dependencies are removed, and it is often cheaper, but it is a separate decision.
Which version of .NET should we target today?
The current long-term support release, .NET 10, which is supported until November 2028. Targeting an LTS version gives the longest stable window, and later upgrades between modern .NET versions are generally far smaller than the move away from .NET Framework.





