Installing Packages
The following command installs a package using the specified sources:
nuget install packageId|pathToPackagesConfig [options]
If no sources are specified, all sources defined in %AppData%\NuGet\NuGet.config
are used. If NuGet.config
specifies no sources, the default NuGet feed is used.
Note that when no package name is specified to the install
command and instead packages.config
is referenced, the install
command will install all packages listed in packages.config
. This may be very useful to restore a set of dependencies in a project without having to explicitly install all packages manually.
Available options are shown in Table B-3.
Get Pro NuGet now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.