← .NET Core learning path
.NET Core · Module 2 of 10

Projects, CLI and NuGet

Create, build and manage .NET projects.

📖 Key ideas

  1. dotnet new webapi / console / classlib creates projects.
  2. A .csproj file defines the project and its packages.
  3. A .sln solution groups many projects.
  4. dotnet add package Newtonsoft.Json installs NuGet packages.
  5. 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