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.

Bearded man in a suit working on a laptop at a wooden table in afternoon sunlight

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 and web.config settings, 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

  1. Convert to SDK-style project files and move from packages.config to PackageReference. This can be done while still targeting .NET Framework.
  2. Update NuGet packages to versions that support both .NET Framework and modern .NET, and replace any that have been abandoned.
  3. Multi-target shared libraries so they build for both net48 and net10.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.
  4. 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.config and ConfigurationManager to appsettings.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.

How We Can Help

Services Related to This Article

The work we do with the technologies discussed above — with pricing, process and real examples on each page.

  • .NET & ASP.NET Core Development

    ASP.NET Core web applications and APIs in C#, Blazor front ends, .NET MAUI apps and integration with the Microsoft and Azure ecosystem.

  • Cloud Migration (AWS, Azure & Google Cloud)

    Move websites, applications and databases from shared hosting, a VPS or another cloud to AWS, Azure or Google Cloud — with a rehearsed cutover and a bill you understand.

  • Docker & Kubernetes

    Applications packaged in Docker, deployed with CI/CD, and run on Kubernetes when they need to scale — with monitoring, secrets and rollbacks built in.

  • Website Maintenance & Support

    Proactive updates, backups, monitoring and on-demand fixes that keep your website secure, fast and always online.

In Practice

Case Studies on This Topic

Projects where we put these ideas to work, each with a live demo.

  • Stretching Exercises — Bridgeway Physio
    • .NET 9
    • C#
    • ASP.NET Core

    Enterprise Web Application

    Clinic Group Scheduling System

    An ASP.NET Core scheduling system across nine clinics, with Entra ID sign-in and automated patient reminders.

Keep Reading

  • Close-up of a car instrument cluster with rev counter, speedometer and fuel and temperature gauges

    NestJS and TypeScript End to End: Sharing Types Between API and Front End

    A NestJS API and a TypeScript front end should not define the same shapes twice. We compare shared packages, OpenAPI-generated clients, Zod schemas and GraphQL codegen, and cover the details that cause contract bugs.

  • Close-up of a metal bicycle chain running over worn, oily sprockets

    Rust for Web Services: Where Its Safety and Speed Pay Off

    Rust is the wrong tool for most business web applications, but for parsing untrusted input, CPU-heavy hot paths and strict latency targets its safety and speed pay for themselves. Here is where it fits, what the stack looks like and what it costs.

  • Drupal module code in an editor beside a panel outlining a Drupal stack of content model, editorial workflow, Twig theme and PHP platform

    Life After Drupal 7: Upgrade to Modern Drupal or Move Platforms?

    Drupal 7 reached end of life in January 2025, and moving on means a rebuild whichever platform you choose. Here is what the risk looks like now, what moving to Drupal 11 involves, and when WordPress, a headless CMS or Backdrop fits better.

Let’s Connect

Let’s Build Something Amazing Together

Share your project details and our experts will get back to you within one business day with the best solution — free consultation, no obligation.