Search code examples
c#visual-studio-2013nugetnuget-packageassembly-references

Resolve project assembly references from nuget packages?


I accidentally deleted all the project references after rebuilding a project.
The nuget package manager restored the packages folder, but all the packages' assemblies are not referred to from the project (Project->References).

How do I add all nuget packages' assemblies as project references?


Solution

  • I never knew, but when the command update-package -reinstall is called parameterless, it would update all the packages.

    Thanks for Matt for his comment.