注意向项目添加引用的库(Visual Studio 2008插件)

时间:2021-10-15 19:26:00

I am hoping someone can help me with this. What I have been looking around for but can't seem to find is if there is someway to add an event, or anything else that will allow a visual studio plug-in to watch for an external reference to be added to a currently open solution / project?

我希望有人可以帮助我。我一直在寻找,但似乎无法找到的是,是否有某种程度上添加一个事件,或任何其他任何允许视觉工作室插件观看外部参考添加到当前打开的解决方案/项目?

Or even better yet would anyone happen to know of an add-in that automatically adds all controls from a referenced dll into the visual studio toolbox?

或者更好的是,有人会碰巧知道一个加载项,它会自动将所引用的dll中的所有控件添加到visual studio工具箱中吗?

Thanks.

2 个解决方案

#1


2  

Not exactly what you asked, but I've written a Visual Studio 2008 Integration Package, and if I recall correctly I could override the "add reference" method, as well as inherit the "reference node" and thus change its behavior, for example its constructor.

不完全是你问的,但我写了一个Visual Studio 2008集成包,如果我没记错,我可以覆盖“添加引用”方法,并继承“引用节点”,从而改变其行为,例如它的构造函数。

This functionality might be missing from an add-in (which is more limited than an integration package), so you might consider writing a package instead.

加载项可能缺少此功能(比集成包更受限制),因此您可以考虑编写程序包。

#2


0  

I have written a macro that will change a file reference to a project reference if you add the project to the solution (and vice versa), but I don't think that's what you want?

我已经写了一个宏,如果你将项目添加到解决方案中,它会将文件引用更改为项目引用(反之亦然),但我认为这不是你想要的?

#1


2  

Not exactly what you asked, but I've written a Visual Studio 2008 Integration Package, and if I recall correctly I could override the "add reference" method, as well as inherit the "reference node" and thus change its behavior, for example its constructor.

不完全是你问的,但我写了一个Visual Studio 2008集成包,如果我没记错,我可以覆盖“添加引用”方法,并继承“引用节点”,从而改变其行为,例如它的构造函数。

This functionality might be missing from an add-in (which is more limited than an integration package), so you might consider writing a package instead.

加载项可能缺少此功能(比集成包更受限制),因此您可以考虑编写程序包。

#2


0  

I have written a macro that will change a file reference to a project reference if you add the project to the solution (and vice versa), but I don't think that's what you want?

我已经写了一个宏,如果你将项目添加到解决方案中,它会将文件引用更改为项目引用(反之亦然),但我认为这不是你想要的?