Unable to restore / remove / update a NuGet package because the mentioned version is no longer available
You can manually remove the dependency by:
- Close Visual Studio (not a hard requirement, but helpful)
- In text editor, remove dependency from all packages.config files
- Remove package from packages/ directory
- In text editor, remove all references to package from all .csproj files
- Start Visual Studio
- Reinstall package through NuGet
There's an easier solution, if you know the versions that currently exist in the feed. This solution can fix every package in every project.
- Open packages.config file (if you have more than one project, do this for every packages.config file)
- Update versions to the correct ones (i.e. change the version attribute)
- In the Package Manager Console, type
Update-Package -Reinstall
Hope it helps