解决方案资源管理器文件中的VS2010加载项自定义菜单项

发布于 2024-09-03 09:53:46 字数 531 浏览 9 评论 0原文

我需要用 C# 为 Visual Studio 2010 插件创建一个自定义菜单项,但我没有找到满足我需求的解决方案。

我知道有一个类似的帖子(Visual Studio 插件 - 向解决方案资源管理器添加上下文菜单项),但这并没有帮助,因为博客通过集成包跟踪了该过程,并且视频是通过 VB 完成的。我曾尝试将 VB 语法转换为 C# 语法,但大约在视频进行到一半时,插件方法从 2005 年到 2010 年发生了显着变化,因为某些方法已被删除或更改。

是否有关于在最新的 Visual Studio 中使用 C# 在解决方案资源管理器上制作自定义菜单项的好教程,是否有一个好的网站可以用作查看 VS 加载项 API 的参考?我使用过微软的主网站,但它令人困惑且冗长,很难理解和找到我正在寻找的方法、属性或命令。

如有任何帮助,将不胜感激,提前致谢。

I need to create a custom menu item for Visual Studio 2010 Add-in in C#, but I have had no luck in finding a solution for my needs.

I am aware that there was a similar post (Visual Studio Add-In - adding a context menu item to solution-explorer), but it did not help, as the blog follows the process through the integration package, and the video is done through VB. I had attempted to convert the VB syntax to the C# syntax, but about half way through the video, the Add-in methods has significantly changed from 2005 to 2010, as some of the methods have removed or changed.

Is there any good tutorials on making a custom menu item on the Solution Explorer in the lastest Visual Studio in C#, and is there a good website that could be used as a reference for looking over the VS add-in API? I've used Microsoft's main website, however it is confusing and wordy, which is difficult to understand and find the methods, properties, or commands that I am looking for.

Any help would be appreicated, Thanks in advance.

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

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

发布评论

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

评论(2

夜访吸血鬼 2024-09-10 09:53:46

你在写什么?已经存在许多很酷的附加组件可以解决您的问题..

例如 与 2010 Pro Power Tools

what are you writing? a number of cool add-ons already exist that might solve your problem..

such as vs 2010 Pro Power Tools

暮倦 2024-09-10 09:53:46

我对此一无所知,但您可能想查看 MME MenuManagerTemplate 和 CodePlex 上的姊妹项目 托管菜单扩展

看起来大多数该代码位于 CodePlex 上的项目中,因此您可以看到该项目是如何实现的。

I don't know anything about it but you might want to check out MME MenuManagerTemplate and the sister project on CodePlex Managed Menu Extensions

Looks like the majority of the code is in the project on CodePlex so you could see how that project is implemented.

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