A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/nuget/reference/cli-reference/cli-ref-restore below:

NuGet CLI restore command | Microsoft Learn

Applies to: package consumption • Supported versions: 2.7+

Downloads and installs any packages missing from the packages folder. When used with NuGet 4.0+ and the PackageReference format, generates a <project>.nuget.props file, if needed, in the obj folder. (The file can be omitted from source control.)

On Mac OSX and Linux with the CLI on Mono, restoring packages is not supported with PackageReference.

Usage
nuget restore <projectPath> [options]

where <projectPath> specifies the location of a solution or a packages.config file. See Remarks below for behavioral details.

Options

Also see Environment variables

The restore command performs the following steps:

  1. Determine the operation mode of the restore command.

    projectPath file type Behavior Solution (folder) NuGet looks for a .sln file and uses that if found; otherwise gives an error. (SolutionDir)\.nuget is used as the starting folder. .sln file Restore packages identified by the solution; gives an error if -SolutionDirectory is used. $(SolutionDir)\.nuget is used as the starting folder. packages.config or project file Restore packages listed in the file, resolving and installing dependencies. Other file type File is assumed to be a .sln file as above; if it's not a solution, NuGet gives an error. (projectPath not specified)
  2. Determine the packages folder using the following priority order (NuGet gives an error if none of these folders are found):

  3. When restoring packages for a solution, NuGet does the following:

Examples
# Restore packages for a solution file
nuget restore a.sln

# Restore packages for a solution file, using MSBuild version 14.0 to load the solution and its project(s)
nuget restore a.sln -MSBuildVersion 14

# Restore packages for a project's packages.config file, with the packages folder at the parent
nuget restore proj1\packages.config -PackagesDirectory ..\packages

# Restore packages for the solution in the current folder, specifying package sources
nuget restore -source "https://api.nuget.org/v3/index.json;https://www.myget.org/F/nuget"

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4