← .NET Core learning path.NET Core · Module 2 of 10
Projects, CLI and NuGet
Create, build and manage .NET projects.
📖 Key ideas
- dotnet new webapi / console / classlib creates projects.
- A .csproj file defines the project and its packages.
- A .sln solution groups many projects.
- dotnet add package Newtonsoft.Json installs NuGet packages.
- dotnet build, run, test, publish.
💡 Real-life example: A solution is a school; projects are classrooms; NuGet packages are borrowed library books.
.csprojProject file
.slnSolution file grouping projects
NuGetPackage manager
dotnet publishPrepares app for deployment