Search code examples
visual-studio-2010nuget

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?


Solution

  • 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]