1
Info: Cannot update NuGet packages in Visual Studio
Announcement by Cem Alacayir - 8/7/2019 at 3:34 PM
Employee Post
If you have a problem updating GleamTech's NuGet packages (DLLs not extracted and causing a compilation or runtime error), your NuGet cache may be corrupted (seems to happen mostly with Visual Studio 2015):

The subfolders for GleamTech's packages may be corrupted in global %userprofile%\.nuget folder. This is not your local packages folder, Nuget stores a machine-wide packages folder in this location.
Reference:
https://stackoverflow.com/questions/36657183/why-is-insert-nuget-package-here-not-extracting-dlls
As the link describes, this folder sometimes can become corrupted.
Maybe in the past, some package installation failed and left the folder in corrupt state.

So to solve this issue, do these steps:

  1. Close all Visual Studio instances.

  2. In Windows Explorer, go to %userprofile%\.nuget\packages folder and delete all GleamTech related subfolders: FileUltimate, DocumentUltimate, ImageUltimate, GleamTech.Core etc.

  3. Re-open your solution with Visual Studio and uninstall GleamTech's NuGet packages and reinstall them again.

  4. Now rebuild your solution and run it and the issue should be resolved (no more compilation or runtime errors).

Only if problem still happens, close Visual Studio and run "VS Developer command prompt" as Administrator and enter this command:

devenv /resetuserdata


Reply to Thread