Restore dependencies for a .NET project or solution in a specific location

dotnet restore

  • Restores the dependencies and tools of a .NET project.
    More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-restore>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dotnet restore {{path/to/project_or_solution}}

click the source code to copy install dotnet restore on any operating system with command-not-found.com