Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Create a single file generation that use T4 template
 

Create a single file generation that use T4 template

Anyone have realized a single file generation ( Usable in Visual Studiolike Custom Tool )
that use a Template file to generate a code?

Thanks.
- Andrea Bianchi - site: http://www.BianchiAndrea.com
BianchiAndrea.com  Tuesday, April 28, 2009 2:07 PM
I try to explain you better.
I try to realize a custom tool (http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivssinglefilegenerator.aspx)like descrived in:
http://www.codeproject.com/KB/dotnet/customtoolsexp.aspx
that use a .tt (called with appropiate parameter) to create an cs file from a specific .xml

I want to use the "Custom Tool" because it is invokedat each saving of thefile, and i can link the samegeneration by setting theProperties of each file that i want to use for generation.
Single .tt is not applicable in my case, howewer i want to use tt engine to create the cs file instead of concatenating string.

Thanks.
- Andrea Bianchi - site: http://www.BianchiAndrea.com
BianchiAndrea.com  Wednesday, April 29, 2009 3:03 PM
Hi Andrea,

I'm not sure if I followed you, Are you trying to generate a single nested file from a template in a project? If so, with Visual Studio 2008you can create a .tt file which already have defined a custom tool to transform the texttemplate.

hth.
jose
Jose Escrich - weblogs.asp.net/jescrich
Jose Escrich  Wednesday, April 29, 2009 2:40 PM
I try to explain you better.
I try to realize a custom tool (http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.shell.interop.ivssinglefilegenerator.aspx)like descrived in:
http://www.codeproject.com/KB/dotnet/customtoolsexp.aspx
that use a .tt (called with appropiate parameter) to create an cs file from a specific .xml

I want to use the "Custom Tool" because it is invokedat each saving of thefile, and i can link the samegeneration by setting theProperties of each file that i want to use for generation.
Single .tt is not applicable in my case, howewer i want to use tt engine to create the cs file instead of concatenating string.

Thanks.
- Andrea Bianchi - site: http://www.BianchiAndrea.com
BianchiAndrea.com  Wednesday, April 29, 2009 3:03 PM

You can use google to search for other answers

Custom Search

More Threads

• How to remove GAX/GAT July 2007 CTP from your system
• Running recipe from another package?
• Access to $fileinputname$
• Application Block Software Factory Templates
• GAT - Custom Wizard Pages
• Boolean argument issue
• Wizard size and colors
• Is there a way to use the current Software Factory for Windows Mobile 6?
• Problems installing a Guidance Package
• Has anyone written a MSI bootstrapper for Guidance Automation Toolkit (GAT)?