.NET runtime
The part of .NET that loads a compiled program, turns its intermediate language into machine code, and manages its memory.
In more detail
The engine inside the runtime is called the Common Language Runtime (CLR); it loads assemblies, runs the JIT compiler and collects garbage. A runtime can only run code that was already built, which is why a server needs a runtime but not the SDK. When you list runtimes, the one named Microsoft.NETCore.App is this plain runtime.
Example
dotnet --list-runtimesRelated terms
- .NET — Microsoft's free, open-source platform for building and running applications, made of a runtime, a large standard library and a toolchain.
- ASP.NET Core runtime — The .NET runtime bundled with the web stack (the Kestrel server, routing and middleware) that a web application needs in order to run.
- JIT compiler — A compiler inside a runtime that turns intermediate code into native machine code while the program runs.
- garbage collection — The automatic freeing of memory held by objects that the program can no longer reach.
- SDK — A software development kit: a bundle of tools, libraries and documentation for building software against a platform or service.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- Solutions, Projects, and Target Frameworks — Modern .NET Core, C# & Enterprise Microservices
- OpenTelemetry, Container Publishing and Trimming — Modern .NET Core, C# & Enterprise Microservices