Skip to content
Learn Netverks

Lesson

Step 5/36 14% through track

playground-workflow

Playground workflow

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

This lesson

This lesson teaches Playground workflow: the syntax, APIs, and habits you need before advancing in ASP.NET.

Teams ship Playground workflow on every ASP.NET codebase—skipping it leaves gaps in debugging and code reviews.

You will apply Playground workflow 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). Also use Console.WriteLine in the playground; run dotnet new web locally for ASP.NET Core lessons.

At the start of the track—complete before lessons that assume you understand the server playground.

Build reliable habits in the C# playground—the same debugging loop transfers to local ASP.NET Core with dotnet watch run and your IDE.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to compile and execute C# on the dev runner.
  3. Use Console.WriteLine for output; use classes and LINQ to simulate web patterns.
  4. Change one idea at a time—one route map entry, one middleware step, one LINQ filter.
  5. When lessons show dotnet new web, run commands locally after installing the .NET SDK.
  6. Reset the editor if you drift far from the lesson goal.

What the runner can and cannot do

  • Can — C# top-level statements, LINQ, async/await basics, simulated routing/DI/EF logic
  • Conceptual — Razor views, Kestrel hosting, middleware pipeline, EF migrations
  • Needs local setup — real web project, SQL Server/PostgreSQL, HTTPS certs, IIS/nginx reverse proxy

Review JavaScript async if await feels unfamiliar—ASP.NET controllers use async heavily for I/O.

Self-check

  1. Why does this track simulate web patterns in plain C#?
  2. When should you install the .NET SDK on your machine?

Challenge

First compile and run

  1. Click Run with the default code.
  2. Confirm the runtime version prints in the output.
  3. Add a second Console.WriteLine with a custom message.

Done when: the terminal shows the runtime version and your custom message.

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

  • dotnet build errors?
  • Top-level vs Main?

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