The name 'TemplateFileManager' does not exist in the current context

  • Thread starter Thread starter MiKeHendriks
  • Start date Start date
M

MiKeHendriks

Guest
Hi all,

I am completely new to C# and T4, but I'm digging in to it now. I want to generate multiple output files from a T4 template. I found some examples on Multiple output files - not overwrite if present - T4 editor and modeling tools V2 - tangible T4 Editor - Support and Discussion Board and How to generate multiples files from a single t4 template in VS?.

I have a problem with this code:


<#@ include file="TemplateFileManagerV2.1.ttinclude" #>

<#
var manager = TemplateFileManager.Create(this);


#>

As a completely n00b I think I've done exactly what the links tell me to do. But I get a error:

Compiling transformation: The name 'TemplateFileManager' does not exist in the current context.

I found some results that says I have to use a include statement or something similar. But as a starter I don't know which code must be included and I tend to believe that the include of TemplateFileManagerV2.1.ttinclude must do the trick. But the error says it's not.

TemplateFileManagerV2.1.ttinclude is included in my project and located on the directory where is pointed to. Anybody has a hint about what I can do to solve this?

Continue reading...
 
Back
Top