Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Recipe spawning on pretty much anything using custom GUID/IDs
 

Recipe spawning on pretty much anything using custom GUID/IDs

Pablo Alberto Galiano pointed out on his blog that it is possible to spawn a recipe from a contextual menu... in the text editor!
I found pretty awesome that Recipes could be used out of the Solution Explorer. Just add :

<CommandBar Guid="d309f791-903f-11d0-9efc-00a0c911004f" ID="1037" />

...to the Recipe's host data. It really works!

Edit : Although I have no idea what the type of "DteHelper.GetTarget(dte)" is in that context. And because of the COM layer, I can't seem to find it by watching the variable or using GetType (I get generic COM wrapper objects).
Renaud Bédard  Tuesday, May 23, 2006 9:01 PM
By the way, the ASPX Editor's command bar is :

<CommandBar Guid="D7E8C5E1-BDB8-11D0-9C88-0000F8040A53" ID="53" />

And the I found out that the DteHelper.GetTarget(dte) in this context is the ProjectItem that you're currently editing, which makes complete sense. :)
Renaud Bédard  Tuesday, June 06, 2006 3:06 PM
You might find this post interesting: http://www.clariusconsulting.net/blogs/kzu/archive/2006/06/01/GATMenus.aspx

Pablo works at my company too, and he's a member of the new Service Factory team. He's a fan of GAT too :)
kzu  Sunday, June 25, 2006 10:47 AM

Hi there,

I tried putting the "Say a message" context menu item to the CS Code Editor and ASPX Editor. But for some reason, the menu is not getting displayed.

I'm adding the following CommandBar elements under HostData,

<CommandBar Guid="d309f791-903f-11d0-9efc-00a0c911004f" ID="1037" />

<CommandBar Guid="D7E8C5E1-BDB8-11D0-9C88-0000F8040A53" ID="53" />

Am I missing something??..

Thanks for any help...

-Santhoo

SanthoshMReddy  Monday, June 26, 2006 7:57 AM
Don't forget to put a matching recipe reference in your binding recipe! The command bar by itself is not enough to show the contextual element. You need to put a bound or unbound recipe reference whose "isValid" returns true for the context you need.
Renaud Bédard  Monday, June 26, 2006 5:16 PM
Another handy CommandBar... Solution Folders at any level!

<CommandBar Guid="D309F791-903F-11D0-9EFC-00A0C911004F" ID="1044" />
Renaud Bédard  Wednesday, July 12, 2006 3:27 PM

HIAll,

I would like to see the recipe in Xaml EditorContext menu .i Can find GUID and ID for the Conetxt menu from http://www.clariusconsulting.net/blogs/kzu/archive/2006/06/01/GATMenus.aspx.

But the menu is not getting displayed. How can i add recipe reference to this recipe.ie i like to see that recipe inXaml EditorContext menu.

Can Anyone help me to find out this with some examples??

VSathya  Thursday, March 26, 2009 9:47 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem with adding references to web application while creating guidance package
• The future of GAT vs. Visual Studio Extensibility
• February 07 GAX
• Package works when manually registered but not using msi
• Web Service Software Factory - Data Types from XSD
• <ProjectGuid>{$WebGuidProp$}</ProjectGuid> Ignored -- very stragne behaviour
• Create New Project Hangs
• UnfoldTemplateAction - with template parameter
• Calling a recipe inside another recipe???
• Making compiling faster!!!