Inventory first: project types, dependencies, NuGet packages, and anything tied to Windows or System.Web. Move shared libraries to .NET Standard or multi targeting early, update or replace incompatible packages, and use the upgrade tooling for the mechanical work. Then migrate the web layer, which is the real rewrite because ASP.NET Core has no System.Web. Migrate incrementally where possible, with tests around behaviour, rather than one big switch.
Why interviewers ask this
Plenty of organisations still run large .NET Framework estates, and migration is one of the most common pieces of work for mid level .NET developers. The interviewer wants a realistic plan: assessment, dependency work, libraries first, then the web layer, with an incremental path and a safety net of tests. Knowing that System.Web, WCF services and Windows specific APIs are the hard parts shows you have scoped one honestly.
How to structure your answer
- Assess the codebase and its dependencies.
- Move shared libraries and packages first.
- Tackle the web layer and its System.Web dependencies.
- Migrate incrementally with tests and a side by side cutover.
Example answer
I start with an assessment, because the size of the job depends on what the app leans on. I list every project, its target framework, and every NuGet package and whether a modern version exists. Then I look for the hard parts: anything using System.Web, such as HttpContext.Current or session state, WCF services, Windows only APIs, and old libraries nobody maintains. Shared class libraries move first, retargeted to .NET Standard or multi targeted, so both the old app and the new code can use them during the migration. The upgrade tooling handles much of the mechanical project file work. The web layer is the real rewrite, because ASP.NET Core has a different pipeline, configuration and dependency injection model. For a large app I prefer an incremental approach: put the new ASP.NET Core app in front with a reverse proxy and move routes across one area at a time. Before touching anything, I add characterisation tests around the key endpoints so we can prove behaviour has not changed.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What would you do about a WCF service that other systems call?
- How would you handle session state shared between the old and new apps?
- How do you decide whether to migrate or rewrite?
Related .net developer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions