📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

What is the difference between .NET Framework and modern .NET (.NET Core, .NET 5 and later)? What changed, how does each one's support lifecycle work, and why do both still exist in 2026?

Covers .NET Framework 4.x versus modern .NET: runtime and platform differences, side-by-side versus in-place installs, the support policies (Windows-bound versus LTS/STS) and why companies still run both.

Beginner Theory Beginner cross-platform dotnet dotnet-framework legacy-migration support-lifecycle

🎯 Key points

  • .NET Framework 4.8.1 is the last version: maintenance only (security and reliability fixes), Windows only, no new features
  • .NET Framework installs in place as a Windows component; modern .NET installs side by side per version
  • .NET Framework 4.5.2+ support follows the Windows version it runs on, with no separate end date
  • Modern .NET: LTS releases get 3 years from release, STS 2 years; .NET 10 LTS (Nov 2025) is supported to November 2028
  • Modern .NET is cross-platform, open source, faster, and runs ASP.NET Core, EF Core, containers and Linux
  • Missing in modern .NET: System.Web (Web Forms, MVC 5), WCF server, AppDomains, .NET Remoting, Code Access Security
  • Cost of staying rises: NuGet packages drop net4x targets, Framework skills get scarcer, no cloud-native hosting on Linux containers
  • Shared code can target netstandard2.0 to run on both during a migration

⏱ 30-second answer

.NET Framework (1.0 in 2002 to 4.8.1) is the original Windows-only runtime. It is now in maintenance mode: security and reliability fixes only, shipped as a Windows component, and supported as long as the Windows version it runs on is supported.

Modern .NET (.NET Core 1.0 in 2016, renamed .NET 5 in 2020, now .NET 10 LTS) is a rewrite: cross-platform, open source, installed side by side, much faster, and released every November. LTS releases get 3 years of support from release, STS releases 2 years.

Both exist because thousands of business apps were built on Framework technologies that never moved across (Web Forms, WCF server, System.Web). The trade-off: Framework is stable and supported, but the cost and risk of staying rise every year as libraries drop Framework targets, skills move to modern .NET, and every new feature and performance gain lands only on modern .NET.

🗣 Full answer (senior)

How I would answer this in an interview

".NET Framework is the original runtime Microsoft shipped in 2002. It only runs on Windows, it's installed as part of the operating system, and every 4.x version is an in-place update, so installing 4.8 replaces 4.7.2 on that machine. Its last version is 4.8.1. Microsoft still patches it, and it's supported for as long as the Windows version underneath is supported, but it gets no new features.

Modern .NET started as .NET Core in 2016 and dropped the 'Core' at .NET 5. It's a new, open-source, cross-platform runtime: the same app runs on Windows, Linux, macOS and in containers. Versions install side by side, so one server can run a .NET 8 app and a .NET 10 app without them affecting each other, and you can even ship the runtime inside the app. There's a release every November: even numbers like .NET 10 are LTS with three years of support, odd numbers are STS with two. ASP.NET Core, EF Core, gRPC, minimal APIs and all the performance work since 2016 live only on this side.

The mistake I see is people saying Framework is 'dead' or 'unsupported'. It's neither. It's frozen. Some technologies never came across: System.Web, so Web Forms and MVC 5, the WCF server side, AppDomains and Remoting. So a company with a profitable Web Forms app has a real cost to move. My one-line summary: Framework is safe to keep running, but every new feature, library and performance gain is only on modern .NET, so the gap grows every year."


Side by side

.NET Framework 4.x Modern .NET (.NET 10)
Platforms Windows only Windows, Linux, macOS, containers
Install In place, part of Windows Side by side, or self-contained in the app
Last / current version 4.8.1 (final) .NET 10 LTS (Nov 2025), yearly releases
Support Follows the Windows OS lifecycle LTS 3 years, STS 2 years
Web stack ASP.NET (System.Web): Web Forms, MVC 5, Web API 2 ASP.NET Core: MVC, Razor Pages, Blazor, minimal APIs
Data EF6, ADO.NET EF Core (EF6 also runs on modern .NET)
Services WCF client and server gRPC, REST, CoreWCF (community, Microsoft-supported)
Open source Reference source only Fully open source on GitHub

What did not come across

Technology Modern replacement
Web Forms Razor Pages, Blazor, or an SPA
System.Web, Global.asax, HttpModule ASP.NET Core middleware and Program.cs
WCF server gRPC, REST, or CoreWCF
AppDomains AssemblyLoadContext or separate processes
.NET Remoting gRPC, HTTP, named pipes
Code Access Security OS-level isolation (containers, least-privilege accounts)

Support as of November 2026

  • .NET Framework 4.8.1: active, no separate end date. Supported while installed on a supported Windows version.
  • .NET 10 (LTS): supported until November 2028.
  • .NET 8 (LTS) and .NET 9 (STS): both reached end of support on 10 November 2026, so anything on them should move to .NET 10.

Production example

A typical Australian insurer runs its claims portal on ASP.NET MVC 5 on Windows Server and IIS, and its newer APIs on .NET 10 in containers on Azure Australia East. The Framework app is patched monthly through Windows Update, but every new feature goes into the .NET 10 services, and shared business rules sit in a netstandard2.0 library both can reference.

🔍 What the interviewer is checking

Checks that the candidate understands the two runtimes as separate products with different support models, and can talk about legacy systems in terms of risk rather than fashion.

Green flags

  • Knows 4.8.1 is the final Framework version and that its support follows Windows
  • Explains in-place versus side-by-side installation
  • Names the technologies that were not ported (Web Forms, WCF server, AppDomains)
  • Mentions LTS/STS and the current LTS version
  • Respects that legacy apps make money

Red flags

  • Says Framework is unsupported or "dead"
  • Thinks .NET Core and .NET 5+ are unrelated
  • Recommends rewriting everything without discussing cost

📚 Learn in depth

1. Why there are two runtimes

.NET Framework was designed in the late 1990s around Windows: IIS, the registry, the GAC (Global Assembly Cache), COM interop and System.Web (which is tightly bound to IIS). By 2014 Microsoft needed .NET on Linux and in the cloud, and it could not do that without breaking compatibility. So it started again with .NET Core: a smaller, modular, cross-platform runtime. Framework was kept alive for compatibility.

2002 ── .NET Framework 1.0 ... 3.5 ... 4.0 ... 4.8 (2019) ── 4.8.1 (2022, final)
2016 ── .NET Core 1.0 ── 2.x ── 3.1 ── .NET 5 ── 6 LTS ── 7 ── 8 LTS ── 9 ── 10 LTS (2025)
                                         ^ 'Core' dropped, one .NET going forward

2. In-place versus side by side

All .NET Framework 4.x versions share the CLR 4 and replace each other. Installing 4.8 changes the runtime under every 4.x app on the machine. That is why Microsoft is so careful about compatibility there, and why the app's targetFramework mostly controls quirks mode, not which runtime runs.

Modern .NET puts each version in its own folder (C:\Program Files\dotnet\shared\Microsoft.NETCore.App\10.0.x). The app's runtimeconfig.json says which version it wants, and roll forward rules pick the latest patch. A self-contained publish copies the runtime into the app folder, so no install is needed at all.

3. How support works

  • .NET Framework 4.5.2 and later is a component of Windows. It gets the same support as the Windows version it is installed on. So 4.8.1 on Windows Server 2022 is supported as long as Server 2022 is.
  • Modern .NET follows its own policy. Releases ship every November. LTS (even) = 36 months, STS (odd) = 24 months. Patches ship monthly on Patch Tuesday, and you must stay on the latest patch to be supported.

This means a Framework app's risk is less about the runtime and more about the ecosystem: libraries dropping Framework targets, developers who don't know Web Forms, and Windows Server versions ageing out.

4. Sharing code: .NET Standard

netstandard2.0 is an API contract that both .NET Framework 4.6.1+ and modern .NET implement. A library that targets it can be used from both. This is the main bridge during a migration: move business logic into netstandard2.0 (or multi-target net48;net10.0) first, then move the apps.

5. What it costs to stay

Cost Why it grows
Performance Each .NET release improves throughput; Framework gets none of it
Hosting Windows-only means Windows VMs or App Service on Windows, no Linux containers
Libraries New NuGet package versions increasingly target only net8.0+
People Fewer developers know Web Forms or WCF configuration
Security Patches still ship, but newer protections (for example new TLS and crypto APIs) land in modern .NET first

Try it yourself

  1. Run reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" /v Release on a Windows machine and map the number to the installed 4.x version.
  2. Run dotnet --list-runtimes and see several modern .NET versions installed side by side.
  3. Create a class library targeting netstandard2.0, reference it from a net48 console app and a net10.0 console app, and confirm both work.
  4. Publish a .NET 10 console app with dotnet publish -c Release --self-contained -r win-x64 and look at the runtime files copied into the output.
  5. Look up the current .NET release policy page and write down the end-of-support date for every runtime your team uses.

💻 Code

The same start-up concern in each world: a .NET Framework app is configured by web.config and Global.asax, a .NET 10 app by Program.cs.

// .NET Framework 4.8: Global.asax.cs (classic ASP.NET, System.Web)
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;

public class MvcApplication : System.Web.HttpApplication
{
    // IIS calls this once when the app domain starts
    protected void Application_Start()
    {
        GlobalConfiguration.Configure(WebApiConfig.Register);
        RouteConfig.RegisterRoutes(RouteTable.Routes);
    }
}
// .NET 10: Program.cs (ASP.NET Core, runs on Windows, Linux or in a container)
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllersWithViews(); // MVC and Web API are one framework now

var app = builder.Build();

app.MapGet("/health", () => Results.Ok(new { Runtime = Environment.Version.ToString() }));
app.MapDefaultControllerRoute();

app.Run();
<!-- A shared library both apps can use during a migration -->
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFrameworks>net48;net10.0</TargetFrameworks>
    <Nullable>enable</Nullable>
    <LangVersion>latest</LangVersion>
  </PropertyGroup>
</Project>

⚠ Common mistakes

  • Mistake: Saying .NET Framework is out of support. Why it is wrong: 4.8.1 is supported for as long as its Windows version is; it is frozen, not abandoned. Instead: Say it is in maintenance mode and explain the growing ecosystem cost.
  • Mistake: Thinking .NET Core and .NET 5+ are different products. Why it is wrong: .NET 5 is .NET Core renamed; the line is continuous. Instead: Call it modern .NET and name the version.
  • Mistake: Assuming every Framework API exists in modern .NET. Why it is wrong: System.Web, the WCF server, AppDomains and Remoting were never ported. Instead: Run a compatibility analysis before estimating a migration.
  • Mistake: Treating installing a new 4.x version like installing a new .NET version. Why it is wrong: 4.x installs in place and changes every 4.x app on the machine. Instead: Test all hosted apps when the Framework version on a server changes.
  • Mistake: Staying on an STS or out-of-support modern .NET version because "it works". Why it is wrong: .NET 8 and 9 stopped getting security patches in November 2026. Instead: Plan a yearly upgrade to the current LTS.
  • Mistake: Recommending a rewrite just because the app is on Framework. Why it is wrong: It costs a lot and risks a system that makes money today. Instead: Weigh the cost of staying against an incremental migration.

🏛 Senior insight: trade-offs

The senior framing is risk and cost, not age. A Framework app is not a problem because it is old; it becomes a problem when its cost of change rises: third-party libraries publish new versions only for net8.0+ so security fixes stop reaching you, the people who know Web Forms or WCF configuration leave, or the business moves to cloud-native hosting (Linux containers, Azure Container Apps, AKS, serverless) and the app can't go there. I measure that with things like how many NuGet packages are pinned to old versions, open vulnerabilities from dotnet list package --vulnerable or Dependabot that can't be fixed, lead time for changes, and hosting cost per request. Migrating also brings continuous benefits: yearly performance gains, modern tooling and an easier path to new architecture.

Option When it fits Cost When not to
Stay on Framework 4.8.1 Stable app, few changes, Windows hosting is fine Low now, rises yearly Heavy feature work planned or Linux/containers required
Share code via netstandard2.0 Both worlds must run for a while Low; some APIs missing Code depends on System.Web or WCF server
Incremental migration to .NET 10 Active app the business depends on Medium, spread over months App is due to be retired soon
Rewrite Domain has changed beyond recognition High, risky Almost always as a first choice

🔗 Follow-ups the interviewer may ask

  1. When: Candidate mentions moving a project file to modern .NET Why: Checks they know SDK-style projects, the first practical step of any migration
    How to answer

    An SDK-style project begins with <Project Sdk="Microsoft.NET.Sdk">. That one attribute pulls in all the standard build logic, so the file only holds what's specific to your project: the target framework, the output type, a few settings and its references. Source files are picked up automatically by globbing, so you don't list each .cs file. Packages are PackageReference items. Old-style .NET Framework project files listed every file, imported targets by hand and used packages.config. That made them long, noisy in merges and tied to Visual Studio on Windows.

  2. When: Candidate mentions sharing code between Framework and modern .NET Why: Checks they know the practical bridge for running both runtimes during a migration
    How to answer

    .NET Standard is an API contract implemented by several runtimes, created before .NET 5 unified the platform. netstandard2.0 is supported by .NET Framework 4.6.1+ (4.7.2+ recommended) and every modern .NET, so one library binary works in both. Target it when the library must still serve .NET Framework apps (for example shared business rules during a gradual migration) and only needs the common API surface. Multi-target (net48;net10.0) when you need runtime-specific APIs or want .NET 10's performance features (spans, newer collections, TimeProvider) on the modern side, using #if NET for the differences. There will be no new .NET Standard versions, and 2.1 isn't supported by .NET Framework, so libraries with no Framework consumers should simply target net10.0. The trade-off: wider compatibility versus access to modern APIs.

  3. When: Candidate mentions IIS hosting Why: Checks they know how ASP.NET Core runs on IIS compared with classic ASP.NET
    How to answer

    Kestrel is the default, cross-platform server built into ASP.NET Core and is fine to run directly, which is what you do in containers and on Linux. On Windows with IIS, the ASP.NET Core Module (ANCM) connects IIS to your app in one of two ways: in-process (the default), where the app runs inside the IIS worker process w3wp.exe using IISHttpServer instead of Kestrel and is fastest on IIS; or out-of-process, where IIS reverse-proxies to Kestrel running in a separate dotnet process. HTTP.sys is a Windows-only, kernel-mode server for when you need Windows authentication, port sharing or kernel caching without IIS. The trade-off: Kestrel is portable and simple, IIS gives Windows process management, and HTTP.sys gives Windows features without IIS.

↩ Usually asked after

More in Legacy Technologies

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me