以项目为中心的NuGet软件包管理器? [英] Project-Centered NuGet package manager?

查看:72
本文介绍了以项目为中心的NuGet软件包管理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多项目的解决方案.我刚刚创建了一个新项目,我想向其中添加解决方案中已经存在的几个NuGet软件包,以使其就像其他项目一样". Visual Studio中是否有功能或某些功能 那种可以快速完成的插件?

I have a solution with lots of projects. I have just created a new project and I want to add to it several NuGet packages that already exist in the solution, to make it "just like that other project". Is there a feature in Visual Studio or some kind of plugin that wold allow to do it quickly?

我知道两个选择,两个都不好.一种是管理解决方案的NuGet包".它以软件包为中心,而不是以项目为中心,因此我必须一个一个地选择软件包,向下滚动项目列表以查看我的项目,然后单击安装". 之后,对于每个软件包,我都会看到许可协议,欢迎网页以及许多其他我不感兴趣的内容:请注意,这些软件包已经在解决方案中,因此我之前已经同意许可条款并拥有看到了 打包网页.

I know two options, both of them bad. One is  "Manage NuGet Packages for solution". It is package centered, not project centered, so I have to choose packages one by one, scroll down the project list to see my project, and click "Install". After that for each package I am shown the license agreement, the welcome web page and a lot of other things I am not interested in: mind you, these packages are already in the solution, so I have previously agreed to the licensing terms and have seen the package web page.

我可以右键单击管理NuGet软件包",在该项目上,但它也不是很有用:它不会显示解决方案中已经安装的软件包,因此我必须访问Internet并再次下载它们,否则有下载版本的风险 这与我在解决方案中已有的解决方案有所不同,因此造成了许多兼容性问题.

I can right click "Manage NuGet packages" on the project, but it is not very helpful either: it does not display packages already installed in the solution, so I have to go to the Internet and download them again, at a risk of downloading a version that is different from the one I already have in the solution, thus creating a bunch of compatibility problems.

我错过了什么吗?有没有办法从解决方案中已经安装的软件包中快速选择项目的软件包列表?

Am I missing something? Is there a way to quickly select a list of packages for the project from the packages already installed in the solution?

推荐答案

嗨ikriv,

欢迎来到MSDN论坛

据我所知,没有实现您想法的功能或扩展,只有管理解决方案的NuGet软件包…, 可以使用相同的解决方案在项目之间对已安装的软件包进行缺陷处理.

As far as I know, there is no such function or extension to achieve your idea, only have the Manage NuGet Packages for Solution…, which can defect the installed packages among projects under the same solution.

我已经报告了此问题对Visual Studio产品团队的建议,请看一下 这个.您可以投票,其他具有相同想法的人也可以投票,那么我们需要等待VS产品团队工程师的反馈,谢谢您的建议.

I have already reported this suggestion to the Visual Studio Product Team, please have a look at this. You can vote it and some other have the same idea can also vote it, then we need to wait for the feedback from the VS Product Team engineers, thank you for your suggestion.

最好的问候,

Sara


这篇关于以项目为中心的NuGet软件包管理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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