[#NUGET] FIX: One or more packages could not be completely uninstalled. Restart Visual Studio to finish uninstall

Hello!

When I remember my first days programming with the amazing COM dlls and DLL Hell, the arriving of .Net was the best thing that could happen to a lot of developers. However, when some projects became more complex, the management of dependencies also became a little more complicated and that’s why in the path NuGet emerge. Today Visual Studio and NuGet are a great tool for dependency management.

That doesn’t mean that still are to improve a bit NuGet within Visual Studio integration. A common mistake that you can find is the following:

One or more packages could not be completely uninstalled.Restart Visual Studio to finish uninstall

image

And the problem is that even if you restart Visual Studio, this “error” is still there. If you get a little on the insides of the IDE see IDE could not release these packages because they have dependencies on some Visual Studio artifacts. For example, Entity Framework editor.

The solution is quite simple, locate the packages in your solution directory and delete invalid packets manually (of course the IDE is closed). I know is not a beautiful solution Winking smile

image

Saludos @ Home

El Bruno

image image image Google

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.