Thuta Learning
BasicProgrammingbeginner

Get Started (Setup)

Relax. We'll talk through this in plain words — no textbook voice.

To run C# code on your local machine, you'll need the .NET SDK. An SDK is a development package that includes the compiler, runtime, and project tools. You can experiment in an online playground, but if you're going to build a real project, setting things up locally is the way to go.

csharp
# 1. Console app အသစ်တစ်ခု တည်ဆောက်မယ်
 dotnet new console -o MyFirstApp

# 2. Project folder ထဲဝင်မယ်
 cd MyFirstApp

# 3. Program ကို run မယ်
 dotnet run

Setup steps

  1. .NET SDK: install it. Once the SDK is installed, you can use the dotnet command.
  2. For a code editor, you can use Visual Studio Code or Visual Studio.
  3. In the terminal, type dotnet --version and check that a version number shows up.
  4. dotnet new console creates a console project, and dotnet run runs the program.
You should see
Hello, World!

Info

⚠️ Common mistake

dotnet is not recognized usually means the SDK isn't installed, it's not on your PATH, or you haven't restarted your terminal yet.

Get Started (Setup) | Thuta Learning