How to download & install all packages for SLN on new computer?

Topics: General
Aug 8, 2012 at 3:37 AM
Edited Aug 8, 2012 at 3:39 AM

Hello!

I am using VS 2010 SP1 with latest NuGet.

I have a solution file that is stored in TFS (via https).  The solution contains 10 projects.  There is a "nuget" folder in my solution file, and all of my projects have "packages.config."  Basically, the nuget settings are also source-controlled in TFS.

I am using a brand new computer with VS2010 SP1, NuGet, and that's it.

When I open my project via source control, references such as EntityFramework are not found in my project(s).

How do I tell NuGet - "go and get all the packages I don't have installed on this computer, like EntityFramework"?

I want to be sure that NuGet doesn't alter my project files or solution files - I just need the referenced DLL's that I'm missing locally on my computer to be installed.  I don't want my source-controlled solution files or project files to be modified.

Can someone enlighten me?

Thanks!

Matt

Developer
Aug 8, 2012 at 5:04 PM

If you open the Manage Packages dialog, we'll prompt you asking if you'd want to restore missing packages. Alternatively, you can run the install command from nuget.exe (http://docs.nuget.org/docs/reference/command-line-reference#Install_Command) on individual packages.config files to have it download packages for you.