自动将NuGet库添加到Visual Studio Toolbox [英] Add NuGet Library to Visual Studio Toolbox Automatically

查看:47
本文介绍了自动将NuGet库添加到Visual Studio Toolbox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用NuGet分享"内部"开发了其他开发人员可以使用的库。我目前正在使用powershell脚本来执行各种任务,并且想知道是否有人已经找到了一种方法来自动将
NuGet安装库的控件添加到工具箱中?如果这可以在项目的范围内,那将是很好的,但是在这一点上,我会满足于只是添加它们。


我已经做了一些研究,其他人说保存,关闭和重新打开项目后,Visual Studio将自动执行此操作。我没有运气。


该库不是严格的控制库,它还包含共享的可重用表单和方法。我不知道是否与它有关。


任何帮助都将不胜感激。谢谢。

解决方案

你好mkruluts,


据我所知,NuGet包我们经常安装的库会在特定项目的引用中添加库,而不会添加到Visual Studio中。


我还尝试在我的项目中安装一些控件包,我发现它们都是只需将库添加到我的项目引用中。如果我想要工具箱中列出的控件,我需要通过右键单击工具箱手动添加它们 - >选择项目
- >单击"浏览器"按钮以查找dll,然后将在"选择工具箱项"窗口中选择此dll中的控件。单击确定按钮后,所有这些控件都将添加到工具箱中。


由于您的问题与NuGet包更相关,我建议您将问题发布到NuGet论坛以获得更好的帮助。 / p>

https://github.com/nuget/home/issues


最好的问候,

Weiwei


I am using NuGet to share "in house" developed libraries that other developers can use. I am currently using a powershell script to do various tasks with it and was wondering if anyone has worked out a way to automatically add the controls of the NuGet installed library to the toolbox? It would be great if this could be within the context of the project, but at this point I would settle for just having them added.

I have done some research already, and others state that Visual Studio will automatically do this after the project has been saved, closed, and re-opened. I have had no luck with this.

The library is not strictly a control library, it also contains shared reusable forms and methods. I don't know if maybe that has something to do with it.

Any help would be greatly appreciated. Thank you.

解决方案

Hi mkruluts,

As far as I know, the NuGet package that we installed often add libraries into references in specific project, which is not add into Visual Studio.

And I also tried install some control packages in my project and I find they are all just add the library into my project references. If I want the controls listed in my Toolbox, I need to add them manually through right-click Toolbox -> Choose Items -> Click the Browser button to find the dll and then the controls in this dll will be selected in the Choose Toolbox Items windows. After click the Ok button, all these controls will be added into Toolbox.

Since your problem more related to NuGet package, I suggest you post your problem to NuGet forum for a better help.

https://github.com/nuget/home/issues

Best Regards,
Weiwei


这篇关于自动将NuGet库添加到Visual Studio Toolbox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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