Nuget Packages are there but missing References

After branching in TFS, VS2015 Update 2 has missing references to all Nuget packages. Package restore says "All packages listed in packages.config are already installed."

I could manually add references to all of the packages in the \packages folder but why isn't VS already checking there?


You need use the NuGet command line in the Package Manager Console:

Update-Package -reinstall

to force reinstall the package references into project.

NuGet Restore only restores files in the packages directory (\packages folder ), but does not restore files inside your project or otherwise modify your project. For example, if a package has added some reference DLLs or other files in your project, if you delete any of these files, they will not be re-added when restoring this package. This may cause the your project to not be able to find the missing dependencies when building.

So use the "Update-Package -reinstall" command to force reinstall the package references and content files into project.


This worked for me:

  • Unload proj from solution
  • Edit csproj file and delete nuggets entries from csproj file (ItemGroup).
  • Reload proj

as found for VS2013 by Shivam (https://stackoverflow.com/a/46763556/1034160) , my solution in VS2017 was to clear Nuget cache from: Options -> NugetPackageManager -> Clear All NuGet Cache(s)


If you cloned the project from a git repository and if the folder created while cloning has a '%20' in it. Then rename folder, get rid of '%20'. This should help to find the package dll's within the project.


Go to ->

  1. Tools -> Nuget Package Manager -> Package Manager Settings
  2. Under Nuget Package Manager -> General Tab
  3. Do Clear Cache
  4. Restart Visual studio and Restore all Nuget Packages.
  5. This will refresh all the references.