EN
Free assessment

Blog · .NET

Migrate .NET Framework to .NET 10: Roadmap, Risks and the Strangler Strategy

To migrate from .NET Framework to .NET 10, the current LTS release, inventory your dependencies, move libraries to multi-targeting and migrate the application in slices with the strangler pattern. .NET 8 and 9 are already out of support. WebForms and WCF do not port directly: they need a new UI and CoreWCF, gRPC or REST.

Anyone who needs to migrate .NET Framework to .NET usually has a system that works, pays the bills and that nobody wants to touch. The reason to touch it is practical: modern .NET runs on Linux and in containers, performs better, gets security fixes continuously and attracts engineers. .NET Framework 4.8 remains supported along with Windows, but it does not evolve. At iTask, .NET runs in 16 active systems, and since 2018 we have maintained an order system built on ASP.NET WebForms over .NET Framework 4.8. We know both sides of the migration.

Pick the target: .NET 10

The target is .NET 10, released in November 2025 with LTS support until November 2028. .NET 8 and .NET 9 went out of support on November 10, 2026, so migrating to them means shipping a system that already lacks security fixes. Use an earlier version only if a dependency or the hosting platform does not yet support 10, and with a date set to move up. Confirm the dates in the .NET support policy and in the end-of-support announcement for 8 and 9.

Step 1: inventory

Before touching code, map:

  • Project types: class libraries, WebForms, MVC 5, Web API 2, WCF, Windows Services, WinForms or WPF apps.
  • NuGet packages and whether each has a .NET Standard or modern .NET version. The ones without become your risk list.
  • Removed APIs: System.Web, AppDomains, Remoting, Code Access Security, parts of System.Configuration, binary serialization.
  • Third-party components for UI and reporting, common in WebForms.
  • Data access: Entity Framework 6, ADO.NET, stored procedures, and the SQL Server version.
  • Test coverage. Without tests, migration relies on manual testing, and that weighs on the timeline.
  • Infrastructure: IIS, Windows Services, scheduled tasks, the GAC, certificates and COM.

Modernization tools (see the end of this article) and compatibility analyzers generate part of this report. The rest comes from reading the code and talking to the people who operate the system.

Step 2: libraries first, bottom up

The order that works follows the dependency graph, from leaves to root:

  1. Convert projects to the SDK format (<Project Sdk="Microsoft.NET.Sdk">), keeping the net48 target. This alone simplifies the csproj.
  2. Move from packages.config to PackageReference.
  3. Multi-target the libraries: net48 and net10.0. The same code serves the old and the new system during the transition.
<PropertyGroup>
  <TargetFrameworks>net48;net10.0</TargetFrameworks>
  <LangVersion>latest</LangVersion>
</PropertyGroup>

Conditional targets (#if NET48) isolate the differences that remain. Multi-targeting is what lets you migrate in slices instead of a big bang.

Step 3: the application, in slices

This is where the strangler fig pattern comes in. Instead of rewriting everything and switching at once, you put a reverse proxy in front of the old system and move routes, one by one, to the new system. YARP, Microsoft’s reverse proxy for ASP.NET Core, fits well here.

The flow:

  1. Stand up a new ASP.NET Core application with YARP, forwarding everything to the old system.
  2. Pick a low-risk slice (a screen, an endpoint, a report) and implement it in the new system, using the multi-targeted libraries.
  3. Change the route in YARP to the new system. If something fails, route back.
  4. Repeat, from simple slices to complex ones.
  5. When the old system no longer receives traffic, shut it down.

Authentication and session are the delicate part: the new and the old system must recognize the same user. Solve it early, with a cookie shared through Data Protection or a single identity provider.

ASP.NET WebForms: there is no direct path

WebForms does not exist in modern .NET. The page lifecycle, ViewState and server controls are gone. The options, in increasing order of effort:

  • Keep WebForms on .NET Framework and migrate only what sits underneath (libraries, data, services). It works as an intermediate stage and shrinks the legacy bit by bit.
  • Rewrite the UI in Blazor, page by page, reusing the business logic. It keeps the team in C#.
  • Rewrite in Angular with an ASP.NET Core API, which separates UI from backend. This path suits products that will keep growing, and we have Angular in 14 systems. See the comparison in Angular vs React for enterprise.

In every case, the first step is extracting business rules from the code-behind files into testable classes. That work reduces risk more than anything else.

WCF: CoreWCF, gRPC or REST

The WCF server is not in modern .NET. The client is supported through the System.ServiceModel.* packages. For the server, there are three paths:

  • CoreWCF, a community project backed by Microsoft that reimplements the server side for ASP.NET Core. It fits well when external clients are tied to the SOAP contract, because the WSDL is preserved.
  • gRPC, for internal service-to-service communication, with a protobuf contract and good performance.
  • REST/JSON with ASP.NET Core, for APIs consumed by browsers and third parties.

Contracts exposed to partners do not change overnight. In those cases, CoreWCF in front and a modern API beside it is usually the safest arrangement.

Windows Services and background tasks

Windows Services become Worker Services (BackgroundService), which run as a Windows service, a Linux process or a container. It is a mechanical migration: the lifecycle changes (StartAsync and StopAsync), dependency injection becomes native and configuration moves to appsettings.json and environment variables.

Take the chance to replace timers and loops with queues. Moving async work to messaging brings resilience and scale. We wrote about it in RabbitMQ .NET tutorial.

Data: Entity Framework and SQL Server

Entity Framework 6 runs on modern .NET, so you can migrate the application without swapping the ORM in the same step. Afterward, evaluate EF Core: it performs better, but behaves differently in queries, lazy loading and mappings. Switch in slices, with tests that compare results.

If the database has stored procedures and migrations, keep them versioned (we use SSDT projects and versioned migrations) and do not mix a database change with a platform change in the same release. Before cutover, review execution plans: the new provider can change parameter shapes and expose slow queries (see SQL Server performance tuning).

Risks and how to reduce them

  • APIs with the same name that behave differently. Dates, cultures, HttpClient, cryptography and serialization have subtle differences. Write characterization tests before the migration.
  • A package with no replacement. Find out during the inventory. Options: an equivalent library, a separate service on .NET Framework, or rewriting that part.
  • Hosting. IIS to Kestrel behind a proxy, file paths, service accounts and certificates all change.
  • Cache and session performance. IIS in-memory session does not replicate across several containers. Use Redis or make the application stateless.
  • Team and schedule. Migrating and delivering new features at the same time competes for the same attention. Split the work into waves.

How to measure progress

Define metrics an IT director can follow without reading code: the share of routes served by the new system at the proxy, the number of projects already multi-targeted, the count of packages without a replacement still open, and the response time of migrated routes compared with the old ones. Hold a short meeting after each slice, covering what shipped, what remains and the risk of the next one. This keeps the migration predictable and avoids the endless project that burns budget without showing results.

Useful tools

GitHub Copilot app modernization replaced the .NET Upgrade Assistant, now discontinued (Microsoft documentation). It converts projects, swaps packages and suggests API fixes. The .NET API Analyzer flags incompatible APIs. YARP does the strangling. CoreWCF covers the SOAP server. AI agents also help with repetitive refactoring, such as turning code-behind into services, generating characterization tests and adjusting API calls. In our process, code generated by agents goes through review by a senior engineer before it merges.

How we can help

We do the inventory, the slice plan and the migration, with the old platform live throughout. See our .NET development expertise and our custom software development service. To look at your case, request the free assessment: you receive the inventory, the path options and a fixed scope, with delivery in weeks per slice.

FAQ

Questions on this topic

Is it worth leaving .NET Framework 4.8, or can I stay on it?

.NET Framework 4.8 stays supported as long as the Windows version it runs on is supported, but it gets no new features. Migration pays off when you need Linux containers, performance, modern libraries, lower infrastructure cost, or hiring people who do not want to work only on legacy.

Which .NET version should I target?

.NET 10, released in November 2025, is LTS with support until November 2028. .NET 8 and .NET 9 went out of support on November 10, 2026, so they make no sense as the target of a new migration project.

Is there a tool that migrates the project automatically?

There are support tools, such as GitHub Copilot app modernization, which replaced the discontinued .NET Upgrade Assistant, plus compatibility analyzers. They speed up project and package conversion, but they do not rewrite WebForms or the WCF server. Treat them as acceleration, with human review.

Can I migrate without taking the system down?

Yes, with the strangler strategy: a reverse proxy in front, migrated routes served by the new system and the rest by the old one. The system stays in production throughout and each slice can be rolled back.

How long does a migration take?

It depends on size, test coverage and the use of WebForms, WCF and third-party components. It can only be sized after an inventory. Usually the result is delivered in slices over weeks, and the free assessment produces a fixed scope.

Tell us what you need to build.

Ask for a free assessment and get a clear path for your project, with no commitment.

Free assessment