Day 1: Setting up C# and .NET
T
Tuan Beo

Day 1: Setting up C# and .NET

Get your development environment ready and write your very first C# program (Hello World).

๐Ÿ“ Theory (Short Description)

  • .NET SDK โ†’ The toolkit that lets you build and run C# programs.

  • CLR (Common Language Runtime) โ†’ The engine that runs your code.

  • Project templates โ†’ dotnet new console creates a simple console app.

  • IDE โ†’ Visual Studio / VS Code help you write and debug code.


๐Ÿ’ป Practice

Step 1 โ€“ Install .NET SDK

  • Download & install from: https://dotnet.microsoft.com/download

  • Verify installation:

    dotnet --version
    

Step 2 โ€“ Create Your First Project

mkdir Playground
cd Playground
dotnet new console -n HelloWorldApp
cd HelloWorldApp

Step 3 โ€“ Run the Project

dotnet run

Expected output:

Hello, World!

Step 4 โ€“ Modify Program.cs

Open Program.cs and change it to:

Console.WriteLine("Hello Tuong Vy, welcome to C#!");

Run again:

dotnet run

Comments