Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Executing actions from templates
 

Executing actions from templates

I have written Actions(deriving from Microsoft.Practices.RecipeFramework.Action) . Is it possible to execute these actions from a vstemplate?

Thanks,
Dhawal


Dhawal B Kapadia  Monday, August 18, 2008 9:40 AM

You can execute Recipes from VS Templates and Recipes do contain one or more Actions. So you can wrap up the action you want into a Recipe and reference this Recipe from the VS Template, that will get your action executed everytime the VS Template is unfolded.

HTH,
-vga.


Working with GAX/GAT/DSL? Download SFT now! http://softwarefactoriestoolkit.net
  • Proposed As Answer byvga Monday, August 18, 2008 7:50 PM
  •  
vga  Monday, August 18, 2008 7:50 PM
That works.... but i have another problem here. Templates require that i specify TemplateContent. But I dont want to put any TemplateContent. Now an additional file is being added to the project

I am actually using recipe to generate classes and add them to the project. So i dont want to specify anything TemplateContent
Dhawal B Kapadia  Tuesday, August 19, 2008 9:20 AM

You can use google to search for other answers

Custom Search

More Threads

• guidance package with custom project extension
• How to execute value editor from custom wizard ?
• Argument in a Recipe, how to access them from a custom page
• ADO.net doesn't work with visual studio 2008
• Error installing GAT on VS 2005 (German)
• Simple class template reference
• FileLoadException installing Application Block Software Factory
• DependentUpon
• how to re-enable register/unregister/quick register guidance package
• Problem installing GAT