LinuxCommandLibrary

dotnet-restore

Restores the dependencies and tools of a .NET project.

TLDR

Restore dependencies for a .NET project or solution in the current directory

$ dotnet restore
copy


Restore dependencies for a .NET project or solution in a specific location
$ dotnet restore [path/to/project_or_solution]
copy


Restore dependencies without caching the HTTP requests
$ dotnet restore --no-cache
copy


Force all dependencies to be resolved even if the last restore was successful
$ dotnet restore --force
copy


Restore dependencies using package source failures as warnings
$ dotnet restore --ignore-failed-sources
copy


Restore dependencies with a specific verbosity level
$ dotnet restore --verbosity [quiet|minimal|normal|detailed|diagnostic]
copy

Copied to clipboard