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, patterns, and safety habits you need before advancing in C#.

Coroutines replace callback hell on Android and in Ktor—structured concurrency is interview-critical.

You will apply Playground workflow in contexts like: .NET services, Unity games, and Windows-centric tooling.

Write C# with Console.WriteLine (top-level or Program), 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 for output; ASP.NET web hosting is taught in the aspnet track.

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

Get the most from each lesson's compiled editor—the same habits transfer to Visual Studio, Rider, VS Code with C# Dev Kit, and CI running dotnet build.

Recommended workflow

  1. Read the concept section before editing code.
  2. Click Run to compile with dotnet and execute.
  3. Use Console.WriteLine for debug output.
  4. Fix build errors and nullable warnings promptly—they prevent runtime surprises.

What the runner can and cannot do

  • Can — single-file console snippets with top-level statements and Console.WriteLine
  • Needs local setup — multi-project solutions, NuGet-heavy apps, Unity Editor play mode

Compare workflows with Java, JavaScript, and C++ compiled tracks.

Self-check

  1. What API prints lines in C# lessons?
  2. What CLI command runs a console project locally?

Challenge

First dotnet run

  1. Click Run with the default code.
  2. Confirm output appears in the terminal.
  3. Add a second Console.WriteLine with your name.

Done when: the terminal shows the default message and your custom line.

Challenge

Verify dotnet output

  1. Run the default program.
  2. Confirm output in the terminal.
  3. Add a deliberate type error and read the compiler message.
  4. Fix and run again.

Done when: you see Roslyn compiler errors when appropriate and clean output after fixing.

Interview prep

What does the playground compile with?

A temporary .NET 8 console project via dotnet run—Roslyn compiles your C# and the CLR executes the output.

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