Skip to content
Learn Netverks

Lesson

Step 4/36 11% through track

dotnet-clr-overview

.NET runtime and CLR overview

Last reviewed Jun 1, 2026 Content v20260601
Track mode
server_compiled
Means
Compiled runner
Reading
~2 min
Level
beginner

This lesson

An orientation to the ASP.NET track—how the server playground works, core vocabulary, and what you will practice next.

Teams ship .NET runtime and CLR overview on every ASP.NET codebase—skipping it leaves gaps in debugging and code reviews.

You will apply .NET runtime and CLR overview in contexts like: Line-of-business APIs, intranets, BFF layers, and cloud-hosted services on Linux or Windows.

Write C# (top-level or Program class), click Run on server—the dev runner uses dotnet build/run on a temp net8 project (requires .NET SDK; LEARNING_RUNNER_ENABLED=true).

After HTML fundamentals and basic programming concepts—before or alongside SQL.

C# source compiles to IL (Intermediate Language) packaged in assemblies (DLLs). The CLR (Common Language Runtime) JIT-compiles hot IL to native code, manages memory with garbage collection, and provides type safety—similar in role to the JVM for Java.

Key pieces

  • .NET SDK — compiler, CLI (dotnet), templates, and runtime for development
  • .NET Runtime — executes published apps in production (smaller than full SDK)
  • NuGet — package manager for libraries (like npm or Maven Central)
  • Target framework moniker — e.g. net8.0 in the .csproj file

Build-run flow (web app)

  1. dotnet new web -n MyApp scaffolds a project
  2. dotnet build compiles C# to IL
  3. dotnet run starts Kestrel and loads middleware pipeline
  4. dotnet publish produces deployable output for containers or IIS

Important interview questions and answers

  1. Q: CLR vs JVM?
    A: Both run managed bytecode/IL with GC and JIT; ecosystems differ—.NET is Microsoft-centric with C#/F#, JVM hosts Java/Kotlin/Scala.
  2. Q: What is IL?
    A: Intermediate Language—CPU-neutral instructions the runtime compiles to native code.
  3. Q: SDK vs runtime in Docker?
    A: Multi-stage builds use SDK image to build, slim runtime image to run—smaller attack surface.

Self-check

  1. Which CLI command compiles a .NET project?
  2. What package manager does .NET use?

Interview prep

SDK vs runtime in Docker?

Multi-stage builds use the SDK image to compile and a slim runtime image to run—smaller attack surface and faster deploys.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • CLR vs JVM?
  • GC generations?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump