Visual Studio Addin - add item to solution explorer context menuhttp://forums.asp.net/t/1406933.aspx/1?Visual+Studio+Addin+add+item+to+solution+explorer+context+menuTue, 21 Apr 2009 08:35:15 -040014069333066308http://forums.asp.net/p/1406933/3066308.aspx/1?Visual+Studio+Addin+add+item+to+solution+explorer+context+menuVisual Studio Addin - add item to solution explorer context menu Hi,<br> <br> I've created a VS2008 addin project, and wish to add a context menu item for the following scenario: Right Clicking on an unloaded project within the Solution Explorer of visual studio.<br> <br> Currently this context menu shows &quot;Reload project, Edit {project name}.csproj, Edit, Remove&quot;.<br> <br> I would like to add my own menu item here.<br> <br> Can anyone help with how I can reference this menu?&nbsp; I can add to the &quot;Tools&quot; menu with:<br> <br> <font size="2">Microsoft.VisualStudio.CommandBars.</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">CommandBar</font></font><font size="2"> menuBarCommandBar = ((Microsoft.VisualStudio.CommandBars.</font><font color="#2b91af" size="2"><font color="#2b91af" size="2">CommandBars</font></font><font size="2">)_applicationObject.CommandBars)[</font><font color="#a31515" size="2"><font color="#a31515" size="2">&quot;<font color="#a31515" size="2"><font color="#a31515" size="2">Tools</font></font>&quot;</font></font><font size="2">];</font><font size="2"> <p>However I am unsure how to target the context menu within the Solution Explorer.<br> <br> </font>Any help / links / sugestions welcome.<br> <br> Bilf<br> <br> </p> 2009-04-06T12:04:03-04:003069695http://forums.asp.net/p/1406933/3069695.aspx/1?Re+Visual+Studio+Addin+add+item+to+solution+explorer+context+menuRe: Visual Studio Addin - add item to solution explorer context menu <p>Manually you can do this this way (maybe this helps you how to reference the context menu)&nbsp;&nbsp;&nbsp;</p> <p>Click any tiny arrow at the end of one of your toolbar\add or remove buttons\customize\toolbars\check &quot;context menus&quot;\a new toolbar appears where you can customize any context menu.</p> <p>Maybe there is also a &quot;Context Menus&quot; command bar(?) Enumerate Microsoft.VisualStudio.CommandBars.<font color="#2b91af" size="2"><font color="#2b91af" size="2">CommandBars to find out.</font></font></p> 2009-04-07T14:41:34-04:003104195http://forums.asp.net/p/1406933/3104195.aspx/1?Re+Visual+Studio+Addin+add+item+to+solution+explorer+context+menuRe: Visual Studio Addin - add item to solution explorer context menu <p>Hi stmarti,<br> <br> Sorry for the late reply.<br> <br> I have iterated the collection of command bars, and have also exposed them as extra menu's via the macro IDE, however I am still&nbsp;unable to find the context menu associated with an unloaded project.<br> <br> The closest match (context menu item names) was for a SVN &quot;stub project&quot;, but sadly none for the &quot;context menu displayed for an unloaded project&quot;<br> <br> Is there something I have missed?<br> <br> Any help is much appreicated<br> </p> 2009-04-20T10:56:18-04:003105017http://forums.asp.net/p/1406933/3105017.aspx/1?Re+Visual+Studio+Addin+add+item+to+solution+explorer+context+menuRe: Visual Studio Addin - add item to solution explorer context menu <p>Perhaps this forum will help <a href="http://social.msdn.microsoft.com/Forums/en-US/vsx/threads"> http://social.msdn.microsoft.com/Forums/en-US/vsx/threads</a></p> 2009-04-20T15:58:52-04:003106943http://forums.asp.net/p/1406933/3106943.aspx/1?Re+Visual+Studio+Addin+add+item+to+solution+explorer+context+menuRe: Visual Studio Addin - add item to solution explorer context menu <p>Smashing - thank you for the pointer!</p> 2009-04-21T08:35:15-04:00