Unable to restore / remove / update a NuGet package because the mentioned version is no longer available

You can manually remove the dependency by:

  1. Close Visual Studio (not a hard requirement, but helpful)
  2. In text editor, remove dependency from all packages.config files
  3. Remove package from packages/ directory
  4. In text editor, remove all references to package from all .csproj files
  5. Start Visual Studio
  6. 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