Warning - using
Update-Package -Reinstall
or
Update-Package -Reinstall -IgnoreDependencies
may remove all of your packages and package.config files!
Always make sure that you have your backups performed first.
Scenario:
- Solution with multiple projects
- Each contains their own Nuget entries, some with the same packages (e.g., SharpRepository, Entity Framework)
- Now copy folder without the packages folder for "distribution" somewhere else
- Assume the packages folder wasn't included with the distribution
- Now try the command
Update-Package -Reinstall
or if you have some alpha packages and/or are sure your dependencies are good, try Update-Package -Reinstall -IgnoreDependencies
Result:
Because the packages folder doesn't exist, the entries for your packages methodically go away, too. This can surprise some people - so be careful, is all I'm saying.