HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dotnet restore — Restores the dependencies and tools of a .NET project. More information: <https://learn.microsoft.co

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandanddependenciesclirestorestoolsdotnet restore

Problem

How to use the dotnet restore command: Restores the dependencies and tools of a .NET project. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-restore>.

Solution

dotnet restore — Restores the dependencies and tools of a .NET project. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-restore>.

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


Restore dependencies for a .NET project or solution in a specific location:
dotnet restore {{path/to/project_or_solution}}


Restore dependencies without caching the HTTP requests:
dotnet restore --no-http-cache


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


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


Restore dependencies with a specific verbosity level:
dotnet restore {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}

Code Snippets

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

dotnet restore

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

dotnet restore {{path/to/project_or_solution}}

Restore dependencies without caching the HTTP requests

dotnet restore --no-http-cache

Force all dependencies to be resolved even if the last restore was successful

dotnet restore --force

Restore dependencies using package source failures as warnings

dotnet restore --ignore-failed-sources

Context

tldr-pages: common/dotnet restore

Revisions (0)

No revisions yet.