Advertisement
Beginner .NET Core, .NET Core Overview & Versions

What is .NET Core and how is it different from .NET Framework?

Short answer

dot NET Core is a free, open source, and cross platform framework built by Microsoft for building modern applications that can run on Windows, Linux, and macOS. The older dot NET Framework, in comparison, only runs on Windows and is closed source.

Save .NET Core mock interview
Advertisement
AModel answer
dot NET Core is a free, open source, and cross platform framework built by Microsoft for building modern applications that can run on Windows, Linux, and macOS. The older dot NET Framework, in comparison, only runs on Windows and is closed source. dot NET Core is also modular, meaning you only include the packages your application actually needs, which makes it faster, lighter, and better suited for cloud native and containerized applications compared to the monolithic dot NET Framework.
// A dot NET Core console app runs the same way on any OS
dotnet new console -o MyApp
dotnet run --project MyApp
Real-world example
A company running its web API on Windows Server with dot NET Framework migrates to dot NET Core so the same application can also run inside Linux based Docker containers in the cloud, reducing hosting costs significantly.
Likely follow-ups
  • Is dot NET Framework still supported by Microsoft?
  • What replaced dot NET Core going forward?
Related topics