Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Restore NuGet Packages" in Visual Studios 2015 not doing anything

I pulled my solution from SVN into Visual Studios 2015. I'm getting errors on some of my "using" references within the code, so I am trying to run the "Restore NuGet Packages" option when right clicking the solution in the "Solution Explorer". This does nothing. I have to manually go into nuget manager and uninstall then reinstall the items. Why is this? How can I get "Restore NuGet Packages" to work?

like image 752
ProgrimerGuy Avatar asked Jul 06 '16 18:07

ProgrimerGuy


1 Answers

You might did not enabled automatic package restore from the following section:

Tools >> Options >> Nuget Package Manager >> General settings.

Also you can try this:

Update-Package -Reinstall

This code will forces re-installation in all solution's projects.

Look at the following for more info:

nuget-package-restore-not-working

Migrating MSBuild-Integrated solutions to use Automatic Package Restore

Hope this will help :)

like image 177
Ahmad Payan Avatar answered Oct 10 '22 09:10

Ahmad Payan