Advertisement
Intermediate .NET, .NET vs .NET Framework

How does cross-platform support differ between .NET Framework and modern .NET?

Short answer

.NET Framework runs only on Windows (there was a limited, largely abandoned open-source cross-platform effort called Mono for some scenarios, but Framework itself is Windows-bound).

Save .NET mock interview
Advertisement
AModel answer
.NET Framework runs only on Windows (there was a limited, largely abandoned open-source cross-platform effort called Mono for some scenarios, but Framework itself is Windows-bound). Modern .NET is natively cross-platform by design, officially supporting Windows, Linux (multiple distros), and macOS, including full support for Linux-based Docker containers -- a major driver for cloud-native and containerized deployment scenarios.
# Framework: Windows only
# Modern .NET: runs identically across platforms
docker run mcr.microsoft.com/dotnet/aspnet:8.0  # Linux container, same app code
Real-world example
A company standardizing on Kubernetes for all backend services requires every application to run in Linux containers, making a migration from .NET Framework to modern .NET a prerequisite rather than optional for any Framework-based service.
Likely follow-ups
  • What was Mono and how does it relate to modern .NET's cross-platform story?
  • How does this affect hosting cost given Linux VMs are often cheaper than Windows?
Related topics