0

So I am using Visual Studio 2022 on Windows 11. I am trying to install a nuget package.

I get the message The package at 'Path' failed to uninstall.

So I restart and guess what - it makes no difference. Its not a re-install so the package isnt already there. It does create the folder and contents in the packages folder. I have closed VS and manually deleted it. The same package works fine in another project!

Anybody any ideas how I move this forward?

Thanks in advance.

MagicWand
  • 392
  • 1
  • 6
  • 19

1 Answers1

0

According to your description, you can try the following methods.

  1. Go to Tools>Options>NuGet Package Manager>General and Clear All NuGet Cache(s). enter image description here
  2. Restore package.
  3. Reinstall package.
  4. Check your package.config file for package dependencies.
Jingmiao Xu-MSFT
  • 2,076
  • 1
  • 3
  • 10