Stage 1 · Lesson 1 of 9
The .NET SDK and dotnet CLI
is the that builds and runs C# programs, and it comes with the .NET SDK. dotnet new console -o Budget creates a project folder with a .csproj file (the project settings) and Program.cs. dotnet run compiles and starts it, and dotnet build compiles without running.
The turns C# into , an in-between form that the .NET runtime then runs on Windows, macOS or Linux. New console templates use . So Program.cs can be a few lines with no visible Main method, because the compiler generates one for you.
Work from the terminal first, before relying on Visual Studio, so you know what the IDE does for you. Read compile errors by their code and line, such as CS0103 for a name that does not exist.
A question to check yourself, an AI practice session and 2 cheat sheet entries come when you add the roadmap to your account. Add it
Resources for this stage
Start with· follow one of these
- GuideFreeLearn C#
Microsoft · Beginner
Official C# fundamentals tutorials that you run locally with the .NET SDK
- PlatformFreefreeCodeCamp
freeCodeCamp · Beginner
Free Foundational C# certification, built with Microsoft, with a graded exam at the end