不重复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
标签,选择你要卸载的包,然后就可以了勾选第一个复选框,所有复选框都会被选中,点击卸载按钮:
此包将从解决方案中的所有项目中卸载。
希望这对您有所帮助。
关于c# - 如何从解决方案中的所有项目中卸载 *a* 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53476489/