CodeGreen

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



Re: Visual Studio Guidance Automation Toolkit Bound recipe not showing up

vga

Is your .vstemplate a multi-project template or project template





Re: Visual Studio Guidance Automation Toolkit Bound recipe not showing up

CodeGreen

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.



Re: Visual Studio Guidance Automation Toolkit Bound recipe not showing up

CodeGreen

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()





Re: Visual Studio Guidance Automation Toolkit Bound recipe not showing up

Jose Escrich

Could you post the content of the output window There you will find a detailed information about the exception.