c# - 如何从解决方案中的所有项目中卸载 *a* 包

标签 c# visual-studio nuget

不重复of :

The other question does not talk about removing one single package from all the projects inside solution.


What is the command to uninstall a specific package from all projects inside a solution?

Visual Studio GUI 似乎仍然天真地支持这些功能。

最佳答案

What is the command to uninstall a specific package from all projects inside a solution?

您可以在包管理器控制台中使用以下命令行:

Get-Project -All | Uninstall-Package <package name> 

如果这个包有依赖,你可以在上面的命令行中添加选项-RemoveDependencies

Visual studio GUI still seems to be naive to support these features.

右击你的解决方案> Manage NuGet Packages for Solution...,切换到Install标签,选择你要卸载的包,然后就可以了勾选第一个复选框,所有复选框都会被选中,点击卸载按钮:

enter image description here

此包将从解决方案中的所有项目中卸载。

希望这对您有所帮助。

关于c# - 如何从解决方案中的所有项目中卸载 *a* 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53476489/

相关文章:

c# - ASP.Net MVC3中如何实现打印

c# - Windows Phone 8 即使手机的主题发生变化,如何始终保持一个主题

visual-studio - Visual Studio 格式化 - 更改方法颜色

git - 如何打开 2 个具有相同 Git 项目和不同分支的 Visual Studio 实例

asp.net-core - .Net Core Nuget 包 - 将文件复制到包使用者 wwwroot

c# - 对同一 http 主机的多个同时请求

c# - Linq Query Join to Subquery with In 子句

c++ - 错误: More than one instance of overloaded function matches the argument list

azure-devops - 获取不允许将 NuGet 发布到 VSTS/ADO 的 405 方法

jenkins - 让 Jenkins 了解自定义 NuGet 包源