How to restore nuget packages without visual studio?

3.3k Views Asked by At

Is there a way to automatically restore NuGet packages of a solution without using Visual Studio (i.e. using the NuGet command line)?

2

There are 2 best solutions below

0
On BEST ANSWER

You need the nuget.exe (which you can download from nuget.org). And than execute

nuget restore packages.config

The full documentation of the nuget.exe is available here.

1
On

Yes, You can use NuGet command line the follwing will install the packages for a solution

Update-Package

This will update all the packages for a project

Update-Package -ProjectName MyProject

If you need more options please have a look at this link