Skip to main content

The dotnet restore command uses NuGet to restore dependencies as well as project-specific tools that are specified in the project file.

# To restore dependencies for a .NET project or solution in the current directory:
dotnet restore

# To restore dependencies for a .NET project or solution in a specific location:
dotnet restore <path/to/project_or_solution>

# To restore dependencies without caching the HTTP requests:
dotnet restore --no-cache

# To force all dependencies to be resolved even if the last restore was successful:
dotnet restore --force

# To restore dependencies using package source failures as warnings:
dotnet restore --ignore-failed-sources

# To restore dependencies with a specific verbosity level:
dotnet restore --verbosity <quiet|minimal|normal|detailed|diagnostic>