Problem with uninstalling NuGet Packages

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

    I had similar issues recently. My project worked fine but I couldn't add or remove any packages via the NuGet package Manager anymore because EnterpriseLibrary 5.0.505 was shown as missing from the source. But trying to either restore or delete it failed with an error "unable to find version '5.0.505. of package 'EnterpriseLibrary'".

    I traced this down to having the following reference in the packages.config file:

    
    

    Comparing this with other solutions to which I added the package more recently I changed it to, the following, which fixed the issue:

    
    

    I never edited any package.config files manually, so I don't know how the mismatch happened. Maybe the reference changed since originally including the package without updating the config file...?

提交回复
热议问题