Step 1: Install the .NET SDK
Download the .NET 10 SDK from the official site dotnet.microsoft.com/download and run the installer. The SDK includes the runtime, the compiler and the dotnet command.
| System | Quick install |
|---|---|
| Windows | Installer from the website, or winget install Microsoft.DotNet.SDK.10 |
| macOS | Installer from the website, or brew install --cask dotnet-sdk |
| Linux | Use your package manager (for example sudo apt install dotnet-sdk-10.0 on Ubuntu) or the install script |
Check that it works. Open a new terminal window and type:
You should see a version that starts with 10, for example 10.0.100. If you see 'command not found', close the terminal and open it again.
Step 2: Choose an Editor
| Editor | Best for |
|---|---|
| Visual Studio Community | Windows users who want the full IDE with a designer and debugger |
| Visual Studio Code | Any system. Install the C# Dev Kit extension. |
| JetBrains Rider | Popular paid alternative with a free non-commercial option |
Step 3: Create a Console App
The terminal prints Hello, World!. You just ran your first .NET program.
Step 4: Read the Code
Open Program.cs. The modern template has just one line:
| Part | Meaning |
|---|---|
Console | A class from the .NET library for the terminal |
WriteLine | A method that prints text and moves to a new line |
"Hello, World!" | A string, the text to print |
; | Every statement in C# ends with a semicolon |
class Program with a Main method. Modern C# lets you write the code directly in the file. It is the same program, with less boilerplate.
Step 5: Make It Interactive
If you type Ana, the program prints: Welcome to .NET, Ana!
$"...{name}..." is string interpolation. Anything inside curly braces is replaced by its value.
Common Problems
| Problem | Fix |
|---|---|
dotnet is not recognized | Restart the terminal or the computer |
| Wrong SDK version | Run dotnet --list-sdks to see what is installed |
| Build errors with red text | Read the first error. It names the file and line number. |
Conclusion
You installed the SDK, created a console app and ran it with dotnet run. Every .NET project in this course starts the same way.

