Search code examples
visual-studio-2015nugetpackage-managers

Persistent Warning: "Multiple packages failed to uninstall."


I have a warning message that came to dinner but now won't leave.

Multiple packages failed to uninstall. Restart Visual Studio to finish the process.

enter image description here

Unfortunately, however, restarting Visual Studio has no effect—the warning remains.

I've tried cleaning the solution as well as the project; all of my projects' assembly references are intact. I've also issued an Update-Package -Reinstall command—which succeeded—to no avail.

How can I set about fixing this?


Solution

  • I believe this may have been caused by a File Explorer folder lock.

    I received a similar warning later, this time for a specific package; because I now knew which package it was I was able to use Lock Hunter to discover why it wasn't deleted.

    I closed File Explorer, restarted VS, and the warning was no longer present. The original warning—the subject of this Q&A—was gone the next day, after having signed out and back in to Windows.