- Install the .NET SDK (8 or later) from dot.net.
- Create a project:
dotnet new console -n HelloApp - Enter the folder:
cd HelloAppand openProgram.cs. - Run it:
dotnet run
Visual Studio, JetBrains Rider and VS Code (C# Dev Kit) are popular editors.
Install .NET and run a console app.
✍️ 2 exercises in this lessondotnet new console -n HelloAppcd HelloApp and open Program.cs.dotnet runVisual Studio, JetBrains Rider and VS Code (C# Dev Kit) are popular editors.
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.
Console.WriteLine($".NET version: {Environment.Version}");
.NET version: 8.0.8
Check what you learned in “C# Get Started”.
Run a .NET project.
dotnet
Which command creates a new console app?
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