I'm working with t4 templates and faced with following problem. I need include another existing t4 template to my template. But I have one restriction: name of included t4 template file is generated dynamically.
I used include
directive for this, but it doesn't work.
<#@ include file="\Helpers\<# FileName.tt#>" #>
I get an error:
An unexpected start or end tag was found within a block. Make sure that you did not mis-type a start or end tag, and that you do not have any nested blocks in the template.
Value of property FileName
is generated dynamically