卸载 NuGet 包的问题 [英] Problem with uninstalling NuGet Packages

查看:49
本文介绍了卸载 NuGet 包的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试卸载 NuGet 安装的一些软件包.根据here 中描述的文档,当我选择已安装的软件包时,我应该会看到一个卸载按钮(下面的第一个屏幕截图).但是,我只看到一个管理按钮(下面的第二个屏幕截图).谁能告诉我如何卸载软件包?

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 select the installed package. However, I only see a Manage button (second screenshot below). Can anyone please tell me how to uninstall the packages?

推荐答案

最后,我发现我不得不手动编辑 .sln 解决方案文件并删除这些行:

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

在解决方案文件中删除上述行后,这些包在 NuGet 包窗口已安装包"页面中消失了.只剩下一个包了,我现在可以看到卸载"按钮了.

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.

我还必须删除解决方案目录中的包文件夹.

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

这篇关于卸载 NuGet 包的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆