Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I copy the nuget package configuration from one project to another?

If I have one project in VS2010 for which I have added a number of packages using nuget, can I then create another project in that solution and somehow obtain the exact same package configuration?

like image 925
Aaron Anodide Avatar asked Jun 14 '12 03:06

Aaron Anodide


1 Answers

This question is a bit old, but I decided to share how I am doing this to anyone looking for the same:

  1. Drag & drop the packages.config from the project where the packages are already installed to the new project.
  2. Open the Package Manager Console
  3. Type:

    Update-Package -Reinstall -ProjectName [name of your target project]

  4. Press enter :)
I hope it helps
like image 104
Guilherme Duarte Avatar answered Sep 19 '22 04:09

Guilherme Duarte