Nuget: How to reinstall and update packages

There are a number of situations when you need to reinstall and update nuget packages for a VS project.

One of this situations is when you wanna upgrade or downgrade the .NET Framework.

In this situation the most important Nuget functionality is Reinstalling packages with dependencies:

Update-Package –reinstall

reinstalls the same version of the original package, but installs the latest version of dependencies unless specific version constraints are provided. This allows you to update only the dependencies as required to fix an issue. However, if this rolls a dependency back to an earlier version, you can use

Update-Package <dependency_name>

to reinstall that one dependency without affecting the dependent package.

For more informations please visit:

https://docs.microsoft.com/en-us/nuget/consume-packages/reinstalling-and-updating-packages