解决方案资源管理器文件中的VS2010加载项自定义菜单项
我需要用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你在写什么?已经存在许多很酷的附加组件可以解决您的问题..
例如 与 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
我对此一无所知,但您可能想查看 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.