C# Get Started

Install .NET and run a console app.

✍️ 2 exercises in this lesson
  1. Install the .NET SDK (8 or later) from dot.net.
  2. Create a project: dotnet new console -n HelloApp
  3. Enter the folder: cd HelloApp and open Program.cs.
  4. Run it: dotnet run

Visual Studio, JetBrains Rider and VS Code (C# Dev Kit) are popular editors.

Key Takeaways: C# Get Started

Mastering C# Get Started helps you write clean and reliable C# code. Follow standard conventions, test edge cases, and keep logic simple. Try running the code example below and complete the exercises to build confidence.

C# Get Started Code Example

C#
Console.WriteLine($".NET version: {Environment.Version}");
Output
.NET version: 8.0.8
Run this example on your own computer. The "Get Started" lesson shows how to set it up.

C# Get Started Practice Exercises

Check what you learned in “C# Get Started”.

/ 2 solved
Fill in the blank

Run a .NET project.

dotnet 
✓ Correct! Not quite. Try again.
Multiple choice

Which command creates a new console app?

✓ Correct! Not quite. Try again.
to save your exercise progress.
Finished this lesson?
Mark it complete to track your progress.

Stuck on something?

Ask the community in the CodesInTech forum.

Need a developer?

Learning on your own is great — and when you need professional help, our team builds custom software, websites and mobile apps for clients worldwide.

Explore Our Services