我应该为 VS 2010 创建什么类型的加载项/扩展?

发布于 2024-09-14 16:23:02 字数 655 浏览 2 评论 0原文

我已经成功地以简单的 dll 形式开发了 Visual Studio“更新 Web 引用”操作的扩展,该扩展负责不同项目之间的一些类共享等。一切都在我的本地计算机上运行,​​现在我想创建一些用户- 友好的软件包,以便我们公司的所有人员都可以使用它。到目前为止,我有

  • 2 个 dll 和 1 个配置文件,需要将它们复制到 Visual Studio IDE 的 PrivateAssemblies 文件夹中,
  • devenv.exe.config 进行(相对)简单的更改file

是否有一些受支持的方法来创建插件/插件/扩展,可以帮助我自动化此操作,而不必关心必要文件夹等的权限,或者我最好编写一个简单的部署工具并告诉人们运行它具有提升的权限吗?

编辑:我需要这两个步骤的原因是我开发了一个 SchemaImporterExtension ,需要在 VS IDE 的配置文件中注册(或者在 machine.config 中注册,但我认为这不会更容易)并且包含它的库必须可以通过解析机制访问(也许在其他一些地方也可以找到它,GAC 当然也可以工作)

编辑 2:最后我简单地创建了一个安装项目,它执行这两个步骤甚至可以将配置文件恢复到卸载时的原始状态。我显然找错了方向,因为我实现的远不是一个插件。不管怎样,谢谢你的提示;)

I have managed to develop an extension for visual studio "Update web reference" action in form of a simple dll that takes care for some sharing of classes between different projects etc. Everything works at my local machine and now I would like to create some user-friendly package so that all the guys in our company can use it as well. So far I have

  • 2 dlls and 1 config file that I need to copy into PrivateAssemblies folder of the Visual Studio IDE
  • A (relatively) simple change in the devenv.exe.config file

Is there some supported way of creating a plugin/addin/extension that would help me automate this and not having to care about the permissions for the necessary folders etc. or am I better off writing a simple deploy tool and tell the guys to run it with elevated permissions ?

EDIT : The reason why I need both of the steps is that I've developed a SchemaImporterExtension that needs to be registered in the config file of VS IDE (or alternatively in the machine.config but I think that wouldn't be easier) and the library containing it has to be reachable by the resolving mechanism (maybe there are some other places where it would also be found, GAC would work as well of course)

EDIT 2 : Finally I have simply created a setup project which does both steps and even restores the config file to the original state when uninstalled. I was clearly looking in a wrong direction because what I've implemented is far from being a plugin. Thanks for the tips anyway ;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

栖竹 2024-09-21 16:23:02

xcopypatch (或者只是编写一些简单的内容来修改配置文件)。

将这一切包装在批处理文件/脚本中。

xcopy and patch (or just write something simple to modify the config file).

Wrap this all up in a batch file/script.

摘星┃星的人 2024-09-21 16:23:02

是的,VSIX 文件用于打包(以及潜在的重新分发)VS 扩展。

VS SDK 文档中介绍了详细信息,例如此处

编辑:另请参阅“vsix”标签。

Yes, VSIX files are used to package (and potential redistribute) VS extensions.

Details are covered in the VS SDK documentation, e.g. here.

Edit: Also see the "vsix" tag here on SO.

苏辞 2024-09-21 16:23:02

查看 FeatureBuilder 插件以更轻松地使用创建插件的方式。 (Channel9 上有一些演示视频。

Check out the FeatureBuilder addin for an easier way of creating plugins. (There's some vids up on Channel9 for demonstrations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文