Problem with uninstalling NuGet Packages

后端 未结 6 770
我寻月下人不归
我寻月下人不归 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:09

    Finally, I found I had to manually edit the .sln solution file and remove these lines:

    GlobalSection(ExtensibilityGlobals) = postSolution
            EnterpriseLibraryConfigurationToolBinariesPath = packages\Unity.2.1.505.0\lib\NET35;packages\Unity.Interception.2.1.505.0\lib\NET35;packages\EnterpriseLibrary.Common.5.0.505.0\lib\NET35;packages\EnterpriseLibrary.Data.5.0.505.0\lib\NET35
    EndGlobalSection
    

    After removing the above lines in the solution file, those packages disappeared in the NuGet Packages Window "Installed package" page. There is only one package left and I can now see the "Uninstall" button.

    enter image description here

    EDIT: I also had to delete the packages folder in my solution directory.

提交回复
热议问题