This project is read-only.

Fwd: T4 Toolbox without VS integration

Jul 5, 2012 at 9:39 PM
There is the file.

---------- Forwarded message ----------
From: Marcos M. Romero <>
Date: 2009/3/31
Subject: Re: T4 Toolbox without VS integration
To: [email removed]
Cc: Oleg Sych <>

Hi Dylan
I send you the .tt file that process T4 generation from command line.
1) Copy it to %program files%\T4 Toolbox\T4Toolbox
2) Sample code
<#@ include file="" #>
<#@ include file="T4Toolbox\" #>
<#@ include file="T4Toolbox\" #>
VisualStudioContext.OpenSolution(solutionRootPath + solutionName + ".sln");
MyCodeGenerator generator = new MyCodeGenerator();
// …
Watch out for this is your template generator
This template can run from VS or call it by command line, as sample:
L:\Other Projects Need\SharpArchitecture_1.0_Beta_(rev_337)\src\NorthwindSample\tools\CrudScaffolding>"c:\Archivos de programa\Archivos comunes\Microsoft Shared
\TextTemplating\1.2\TextTransform.exe" -I "c:\Archivos de programa\T4 Toolbox"
I hope this can help u, if u have questions ask me.

2009/3/26 <>

Thanks guys. I appreciate the help.

Dylan Bourque
Lewis Computer Services

From: "Marcos M. Romero" <>
Cc: Dylan Bourque <>
Date: 03/26/2009 05:09 PM
Subject: Re: T4 Toolbox without VS integration

Hi Dylan,

As Oley said, I was working on the same feature that you need, I'll prepare a sample and send you the las source code of T4 (.tt files) that suport these feature, give me till the next week.


Marcos Romero

2009/3/26 Oleg Sych <>

I am working with Marcos Romero, who is also interested in build-time code generation. Marcos’ idea is to start Visual Studio from the template running in TextTransform.exe and let the rest of T4Toolbox work the way it usually does. Perhaps you guys can work this out. I will help as much as I can on the framework side.


Oleg Sych
Senior Lead Consultant

727.251.5813 | Cell


From: Dylan Bourque []
Thursday, March 26, 2009 2:33 PM
T4 Toolbox without VS integration

Hi Oleg,

I've just started looking at using the T4 engine for code generation. Currently, we're using a custom solution that we developed internally. I came across your T4 Toolbox while searching for resources on reusable T4 templates, but I need to be able to do the code generation at build time via the TextTransform.exe command line tool instead of within Visual Studio. In this T4 Toolbox discussion (, Christian asks about the same issue. Have you done any work to accommodate this scenario?


Dylan Bourque

Lewis Computer Services