Sometimes, for example in case of updating MVC 4 projetc to MVC 5, some nuget packages will have wrong versions or might be missing from references.
In this case command Update-Package -reinstall come handy.
In Visual Studio open from menu Tools -> NuGet Package Manager -> Package Manager Console.
In console execute next command for for missing package :
Update-Package -reinstall [needed-package-name]
In this example:
Update-Package -reinstall Microsoft.ApNet.Identity.Owin
Example:
- Even the package is present, it is missing from references:
2. Executing Update-Package -reinstall Microsoft.ApNet.Identity.Owin
3. And the result :