CSharp Getting Ready

Lessons C# Book Chapter 1
C# Book · Chapter 1

Getting C# Ready (Windows Setup)

Unlike HTML, C# doesn’t live in your browser. It runs through a full development environment called Visual Studio. That sounds heavy, but you’re about to see it’s just another playground — and you only have to set it up once.

Follow these steps and you’ll have a working C# sandbox in under fifteen minutes.

Chapter 1 of 6

Install Visual Studio Community

C# projects are easiest to build in Visual Studio Community — Microsoft’s free, full‑featured IDE.

  1. Open your browser and go to visualstudio.microsoft.com.
  2. Click Download under Visual Studio Community.
  3. Run the installer once it finishes downloading.

When the Visual Studio Installer opens, you’ll see a list of workloads — bundles of tools for different kinds of development.


Pick the right workload

For this book, you only need the .NET tools.

  1. In the installer, check .NET desktop development.
  2. Leave everything else unchecked unless you already know you need it.
  3. Click Install and let it run. This may take a few minutes.

When it finishes, click Launch to open Visual Studio.


Create your first C# project

We’ll start with the simplest possible sandbox: a console app that prints text.

  1. In Visual Studio, click Create a new project.
  2. Search for Console App (C#).
  3. Select Console App and click Next.
  4. Name it PlayFirstCSharp and choose a folder you can find easily.
  5. Click Create.

Visual Studio will open a file called Program.cs with some starter code already inside.


Run your first C# program

Look for a line that prints something to the console, like:

Console.WriteLine(“Hello, World!”);

To run it, click the green Run button at the top (or press F5).

A black console window will appear showing:

Hello, World!

That’s your C# sandbox saying hello. You’re officially up and running.


The Play‑First Loop in C#

The tools changed — browser to Visual Studio — but the loop is exactly the same:

Imagine → Prompt → Play → Tweak → Break → Repeat

The AI will write the first C# version. You’ll run it, twist the knobs, and break it on purpose. Visual Studio is just the new playground where that happens.

You’re in C# Book · Chapter 1 of 6
Play‑First Programming · playfirstprogramming.com A clubhouse for curious builders