扩展 VS 2010:在解决方案资源管理器的右键单击上下文菜单(添加)中包含其他项目?

发布于 2024-09-14 12:54:06 字数 511 浏览 2 评论 0原文

我希望在 vs 2010 中的解决方案资源管理器上的上下文敏感右键单击“ADD”上创建一个附加项目。

基本上它目前看起来像这样

New Item
Existing Item
New Folder
Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB MENU
Class

我想做的是创建一个类似于“添加 asp.net 文件夹”的新项目因此它将有子项目

基本上它将是这样的

Add JS items
     Add new model
     Add new plugin

基本上单击“添加新模型”或“添加新插件”将创建一个新文件UTF-8并包含在项目中。它将包含一些默认代码。

我在尝试找到一个很好的例子来说明如何做到这一点时遇到了一个真正的问题。

有什么想法我应该看哪里吗?

有人见过类似的东西吗?

提前致谢

I wish to create an additional item on the context sensitive right click "ADD" on the solution explorer in vs 2010.

Basically it currently looks like this

New Item
Existing Item
New Folder
Add ASP.NET FOLDER // ACTUALLY THIS IS A MENU with a SUB MENU
Class

What i am trying to do is create a new item similar to "Add asp.net folder" hence it will have subitems

Basically it will be something like this

Add JS items
     Add new model
     Add new plugin

Basically clicking on "add new model" or "add new plugin" will create a new file UTF-8 and include in the project. It will contain some default code.

I am having a real issue trying to find a good example of how to do this.

Any ideas where i should look?

Anybody seen anything similar?

THanks in advance

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

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

发布评论

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

评论(1

冬天旳寂寞 2024-09-21 12:54:06

这里有一些文档可以为您指明正确的方向。

http://msdn.microsoft.com/en-us/library/bb165473。 aspx

http://msdn.microsoft.com/en-us /library/bb164699.aspx

基本上,命令和菜单在整个 VS 中的工作方式都是相同的,一个棘手的部分就是找到您想要挂钩的父菜单的正确 Guid。

Here are some docs to point you in the right direction.

http://msdn.microsoft.com/en-us/library/bb165473.aspx

http://msdn.microsoft.com/en-us/library/bb164699.aspx

Basically commands and menus work the same throughout all of VS, one tricky part is just finding the right Guid of the parent menu that you want to hook in to.

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