Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An optional list of NuGet Feed package sources (the default source location is nuget.org). [-Source]

Specify configuration file

Shows a field for specifying the path to the configuration file. If not ticked, no -ConfigFile parameter is set and NuGet will automatically attempt to detect the configuration file. [-ConfigFile]

Configuration File

Location of the nuget.config file within your source control.

...

If this is ticked, the local package Cache is checked first before going to NuGet or external sources. [-NoCache]

Require Consent

As of NuGet version 2.0 a privacy-related constraint option for restores from introduced. When ticked NuGet will check to see if package restore consent has been granted before installing package(s). If ticked NuGet will look for the presence of the following within your NuGet.config file (if not present a build error will occur).    [-RequireConsent]

Code Block
languagexml
<packageRestore>
  <add key="enabled" value="true" />
</packageRestore>

...

The relative or absolute directory that NuGet will look to resolve packages.  This can also be specified within the NuGet configuration file. [-PackagesDirectory]

Solution Directory

The relative or absolute directory to use when restoring packages for a solution. <solutionDirectory>\packages is used as the packages directory.  This option is not valid when restoring packages for a solution file in this scenario $(SolutionDir)\packages is used as the packages directory. [-SolutionDirectory]

Enable Parallel Processing

By Default NuGet will download and install dependency chains in Parallel.  To disable this feature tick off this option. [-DisableParallelProcessing]

Enable Package Restore

When ticking this check box adds the relevant system environment variable 'EnableNuGetPackageRestore = true'. This is the equivalent of clicking “Allow NuGet to download missing packages during build' ticked within Visual Studio.

...