C# and .NET • Modern C# baseline
Install the .NET SDK and Create a Project
Create, build, and run a C# console project with the .NET command-line tools.
The .NET SDK contains the compiler, project tooling, and runtime packs needed to build applications. A project file records its target framework and dependencies. Keep SDK requirements documented so local development and continuous integration use compatible toolchains.
Key points
- Use dotnet --info to inspect installed SDKs and runtimes.
- Build output belongs in generated directories, not source control.
Example
dotnet new console -n LearningApp
cd LearningApp
dotnet run
What to expect
The commands create a console project and run its initial program.
Practice exercise
Create a project, inspect its .csproj file, and identify the target framework.
Key idea: A reproducible project configuration is part of the application, not an editor preference.