What is in a Project Folder?
The Project File
| Setting | Meaning |
|---|---|
OutputType | Exe means a program you can run. Libraries use Library. |
TargetFramework | Which .NET version to build for. net10.0 is .NET 10. |
ImplicitUsings | Common using lines such as System and System.Linq are added for you |
Nullable | Turns on compiler help to avoid null errors |
Commands You Will Use Daily
| Command | What it does |
|---|---|
dotnet new console -n Name | Create a new console project |
dotnet build | Compile the project |
dotnet run | Build and run |
dotnet watch | Re-run automatically whenever you save a file |
dotnet test | Run unit tests |
dotnet publish -c Release | Create the files you deploy |
dotnet add package Name | Add a NuGet package |
dotnet new --list | List all project templates |
NuGet: Packages from Other People
NuGet is the package store for .NET. Instead of writing everything yourself, you add a package, for example one that reads CSV files or makes charts.
The package name is added to your .csproj as a PackageReference and downloaded automatically.
Solutions: Several Projects Together
A real application usually has several projects, for example a web API, a library with business logic and a test project. A solution (.sln or .slnx) groups them.
dotnet build at the solution folder to build everything at once.
Clean Up
If something behaves strangely, delete the bin and obj folders and build again. They are always re-created.
Conclusion
The .csproj describes the project, NuGet gives you ready-made libraries and the dotnet command builds, runs, tests and publishes everything.

