1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.
Working with and modernising legacy .NET: .NET Framework, ASP.NET MVC 5 and Web API 2, Web Forms, WCF, Windows Services, EF6 and ADO.NET, and the strategies and tools to migrate them incrementally to .NET 10.
Hands-on migration of a class library and an MVC 5 app to .NET 10: converting to SDK-style projects, multi-targeting net48 and net10.0, packages.config to PackageReference, Global.asax and web.config to Program.cs and appsettings.json, and where GitHub Copilot app modernisation helps.
Covers translating WCF features to modern .NET (DataContract to protobuf or JSON, FaultContract to gRPC status or ProblemDetails, duplex to streaming or SignalR, sessions), choosing gRPC, REST or CoreWCF per service, and keeping external SOAP clients working.
Hands-on migration of a ServiceBase Windows Service to a .NET 10 Worker Service: BackgroundService with PeriodicTimer, AddWindowsService, graceful shutdown and HostOptions, scoped services via IServiceScopeFactory, EventLog vs console logging, sc.exe installation, and a container image for Linux.
Covers Web Forms migration: why there is no automated path (ViewState, server controls, page lifecycle, code-behind business logic), comparing Razor Pages, Blazor (Server/WebAssembly/Auto) and an SPA, extracting logic first, page-by-page migration behind YARP with shared auth and session, and how to choose.
Hands-on mechanics of Microsoft.AspNetCore.SystemWebAdapters during a strangler-fig migration: System.Web API surface for shared libraries, remote app session and remote authentication between the ASP.NET Core and Framework apps, the API key, session serialisation, performance cost, and the exit plan.
Covers the database side of a legacy migration: keeping the schema stable while EF6 and EF Core coexist, scaffolding or hand-mapping EF Core, baselining migrations, moving on-premises SQL Server to Azure SQL Database or Managed Instance (DMS, log replay, bacpac), compatibility checks, data migrations, cutover and rollback.
A leadership-level walkthrough of a business-critical .NET Framework to .NET 10 on Azure migration: discovery and baseline, phased plan, team and ways of working, Azure hosting and security choices (App Service or Container Apps, Key Vault, managed identity, Australia East), risk register, stakeholder communication, and success measures (DORA, SLOs, cost, decommissioning).
Staff-level decision on rewrite versus incremental modernisation: assessing the system (value, change rate, quality, knowledge), the hidden costs of rewrites (second-system effect, feature parity, frozen delivery), estimating options with ranges, a decision matrix including retain and replace-with-SaaS, presenting risk to executives, and when a rewrite is justified.