Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Bound recipe not showing up
 

Bound recipe not showing up

I have the following recipe I want to appear in the context of a specific project of my solution.

In the main GAT xml file:

<Recipe Name="AttachToServiceSimulator" Bound="true">

<Caption>Attach to the Schedule Service Simulator</Caption>

<HostData>

<Icon ID="1046"/>

<CommandBar Name="Project"/>

</HostData>

<Actions>

<Action Type="AptitudeServiceJobGA.Actions.AttachScheduleSimulatorAction, AptitudeServiceJobGA" Name="AttachService" />

</Actions>

</Recipe>

In the vstemplate of the project I wish to have the recipe:

<WizardData>

<Template xmlns="http://schemas.microsoft.com/pag/gax-template"

SchemaVersion="1.0">

<References>

<RecipeReference Name="AttachToServiceSimulator" Target="/" />

</References>

</Template>

</WizardData>

The recipe does not show up in the context menu, but is in the Guidance Manager, and the Applies To correctly shows the project I want. I am using a wizard to allow the user to name the project, could this be a factor?

<ProjectTemplateLink ProjectName="$ClassLibProjectName$">Projects\ClassLib\ServiceJob.vstemplate</ProjectTemplateLink>

Thanks,

Danny

CodeGreen  Thursday, April 12, 2007 2:20 PM
Could you post the content of the output window? There you will find a detailed information about the exception.


Jose Escrich  Friday, April 20, 2007 10:40 PM
Is your .vstemplate a multi-project template or project template?
vga  Thursday, April 12, 2007 7:43 PM
The vstemplate for the project (the code provided), is just for the single project. There is a vstemplate at the solution level that contains 2 projects.
CodeGreen  Thursday, April 12, 2007 8:27 PM

I've found that when using the msi installer on another machine, the reference works correctly. So I figured I'd try unregistering, and re-registering on my dev machine, but when I try to unregister, I get the following:

Microsoft.Practices.RecipeFramework.ActionExecutionException: An exception occurred during the binding of reference or execution of recipe Unregister. Error was: Action Unregister failed to execute:
Failed to process package. See the Guidance Package Development output window for more information about the error..
You can remove the reference to this recipe through the Guidance Package Manager. ---> System.Configuration.Install.InstallException: Failed to process package. See the Guidance Package Development output window for more information about the error.
at Microsoft.Practices.RecipeFramework.MetaGuidancePackage.Registration.PackageRegistationAction.ThrowFailure(DTE vs, String currentOperation, String output)
at Microsoft.Practices.RecipeFramework.MetaGuidancePackage.Registration.PackageRegistationAction.Execute()
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName, Dictionary`2 inputValues)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionExecutionService.Execute(String actionName)
at Microsoft.Practices.RecipeFramework.Recipe.Microsoft.Practices.RecipeFramework.Services.IActionCoordinationService.Run(Dictionary`2 declaredActions, XmlElement coordinationData)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
--- End of inner exception stack trace ---
at Microsoft.Practices.RecipeFramework.Recipe.UndoExecutedActionsAndRethrow(Exception ex)
at Microsoft.Practices.RecipeFramework.Recipe.ExecuteActions(IDictionaryService readOnlyArguments, IDictionaryService arguments, ITypeResolutionService resolution)
at Microsoft.Practices.RecipeFramework.Recipe.Execute(Boolean allowSuspend)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(String recipe, IAssetReference reference, IDictionary arguments)
at Microsoft.Practices.RecipeFramework.GuidancePackage.Execute(IAssetReference reference)
at Microsoft.Practices.RecipeFramework.RecipeReference.OnExecute()
at Microsoft.Practices.RecipeFramework.AssetReference.Execute()
at Microsoft.Practices.RecipeFramework.VisualStudio.RecipeMenuCommand.OnExec()
at Microsoft.Practices.RecipeFramework.VisualStudio.AssetMenuCommand.Invoke()

CodeGreen  Friday, April 20, 2007 7:33 PM
Could you post the content of the output window? There you will find a detailed information about the exception.


Jose Escrich  Friday, April 20, 2007 10:40 PM

You can use google to search for other answers

Custom Search

More Threads

• Installed GAT/GAX but "Guidance Package" items not in VS08's menus
• CodeDom -Error when Run Recipe
• Is it possible to call an action from a Converter ?
• Error unfolding project template
• Retreive Project location
• Installing Web Serivce Software Factory failing
• Newbie Problem
• SFT Wix Installer error
• Adding Solution items
• Reuse Projects and Recipes