Skip to the workspace
Pebellslearn by building
C# and .NET Basics  ›  Lesson

.NET — The Platform Underneath

.NET 12 min.NET is the runtime, base libraries and SDK that compile C# into intermediate code and run it on Windows, macOS and Linux.

aspnet core / .NET — The Platform Underneath

Explore each scene at your own pace.

01 · The rule

The rule

.NET — The Platform Underneath

C# is the language; .NET is everything that makes it run. When ReadingRoom works on your Mac and then on a Linux server without a single change, that is .NET doing its job. Knowing its parts tells you what to install where.

The rule

C# compiles to IL; the .NET runtime turns IL into machine code.

.NET has three parts you meet every day:

  • The runtime (the CLR) loads your program, manages memory with a garbage collector, and compiles code for the processor as it runs.
  • The base class library gives you ready-made types: List<T>, DateTime, file access, HTTP clients, JSON.
  • The SDK holds the compiler and the dotnet command you use to create, build and test projects.

Your C# is compiled into intermediate language (IL) and stored in an assembly, a .dll file. IL is the same on every operating system. When the app starts, the runtime's just-in-time (JIT) compiler turns IL into native instructions for that machine.

ASP.NET Core is not a separate product you bolt on. It is a framework that ships with .NET, so a web project simply targets it:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <Nullable>enable</Nullable>
  </PropertyGroup>
</Project>

Releases arrive every November. Even-numbered versions (.NET 8, .NET 10) are long-term support releases; odd-numbered ones (.NET 9) get a shorter support window.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.