O'Reilly logo

Pro NuGet by Xavier Decoster, Maarten Balliauw

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required