0

I have a quite a bit of T4 runtime templates in my solution and I'd like to organize them in folders, but my builds fail as soon as I do so. The failures are simply because of template can't be found. How can import or add a search path for t4 runtime template in my classes ?

1 Answers1

0

You can specify either absolute paths or relative paths. If the included file resides within the same solution, use relative paths. Example:

<#@ include file="..\..\..\..\EPS\EPS.Framework\EPS.Framework.Common\Localization\ML.ttinclude" #>

Here the included file resides withing another project in the same solution. Use ..\ to move up one folder.

Olivier Jacot-Descombes
  • 104,806
  • 13
  • 138
  • 188