I have the following .tt file that I wish to use as an include file where I want to expose some properties to the main T4 files:
Include.tt
<#@ assembly name="$(ProjectDir)bin\Debug\EPPlus.dll" #>
<#@ assembly name="System.Configuration.dll" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.Configuration" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Text.RegularExpressions" #>
<#@ import namespace="OfficeOpenXml" #>
<#
public static string EDIInputPath
{
get
{
return ConfigurationManager.AppSettings["inputPath"];
}
}
#>
When saving this code it throws 7 compile time errors with the first one saying "Statement expected".
I don't use T4 templates very often so I am not entirely sure what I am doing wrong here.