index > Visual Studio Guidance Automation Toolkit > How can you use T3 templates in VS templates???

How can you use T3 templates in VS templates???

I've created about 10 T3 templates which show up in the Project and Project Add CommandBars. I now want these exact templates to show up in the Add / New Item... list as well. It appears that I can't do this without having at least one <TemplateContent> in the *.vstemplate file. I'm using functionality that is only in T3 templates and I really really only want to have to use one kind of template engine. Otherwise, I will have to maintain two complete different sets of templates to produce exactly the same thing.

My initial hope was that I could just leave out the <TemplateContent> element, run my recipe to build the code files and return the corrrect ProjectItem to the VS template framework.

Am I missing something simple?
JLeBert
This is one improvement we're working on for the next drop of GAT, where a new (although very very similar text template engine codenamed T4) engine will be in-place. Hopefully you will be able to do exactly the same you're trying right now.

For now, however, there's no way to achieve what you're looking for, other than having an empty template and have an action that overwrites its "output" with the contents of a T3 transformation.



Daniel Cazzulino [Solutions Architect MVP]
kzu
reply 2

You can use google to search for other answers

 

More Articles

• Has anyone written a MSI bootstrapper for Guidance Automation Too...
• Guidance Automation Extensions Registration does not work
• Changes to the ProjectName from a Wizard is ignored
• Create Add DataSet recipe
• CAB Module menu item doesn't run
• Is there any way to run an action when a project with my guidance...
• Synchronizing - GAT Package Changes
• Using FileNameEditor as a Value Editor
• IExtenderProvider the GAT way...
• Call a recipe
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How to Create Web Service Agent ?
• GAT not compatible with W2K?
• web project template, to fire code in ga
• How should I deploy additional binaries?
• Can we checkout file under ClearCase as
• Can you build a guidance package in VB?
• Integrating validation information withi
• Guidance Package Visual Studio 2005 Proj
• How to execute actions after solution te
• How to use Generic List in T3
• Guidance Automation Extensions and Toolk
• Nested Project Templates
• Get Full Path for Project Item...
• Building a first Guidance Package
• Uninstalling Missing Packages

Hot Articles

• GAT on Visual Studio Release Candidate
• Clean up of wizard base form.
• Set version for Guidance Package
• Can you detect all installed packages?
• configured attribute T3 - no property o
• Can't Drag Controls onto CustomWizPages
• Argument Expansion - Unfold Template
• web project template, to fire code in ga
• Installation error
• How to Add Fixed Assets in GAT?
• make wizard check in file after automate
• classname value
• Integrating validation information withi
• GAT breaking changes
• trouble installing the Web Service Softw

Recommend Articles

• GAT Custom Directive Processor
• Code samples anywhere ?
• System.Collections.Generic.KeyNotFoundEx
• How is GAT Package information persisted?
• Extending Designer Toolbox
• How to use Generic List in T3
• Support for Web Application Project
• June GAT Installation Issues
• Problem adding reference to CSharp proje
• NotImplementedException on OnComponentCh
• Is there a way to use the T3 engine as a
• Visual Studio hangs when I install the T
• Nested Solution Folder Parent?
• GAT is VS Solution Centric
• Can't run the Guidance Package