Problem with uninstalling NuGet Packages

后端 未结 6 745
我寻月下人不归
我寻月下人不归 2021-02-13 02:59

I\'m trying to uninstall some packages installed by NuGet. According to the doc described here, I should see an Uninstall button (first screenshot below) when I

6条回答
  •  感动是毒
    2021-02-13 03:29

    After using the VS IDE Manage NuGet Packages dialog or Package Manager Console you may have to manually remove solution files or other files on the file system that are part of the package not in the packages folder.

    I was evaluating the Microsoft.AspNet.FriendlyUrls package which added a master page, a user control, a class code file and a packages.config file to my ASP.NET web application project / solution. I made the mistake to manually undo / remove these files from the solution before using the NuGet Packages dialog to remove the package. Everything got confused at that point.

    As others have said, deleting the packages folder was the solution. But then I had to manually figure out the other files outside that folder that also should be deleted.

提交回复
热议问题