I was already messing around with T4 support in Mono and noticed a very cumbersome thing. The current directory when starting T4 templates is the home directory. I need to be able to read several files from the current project directory, but I do not understand how to do this.
<#@ template language="C#v3.5" #> <#@ output extension="txt" #> <#=System.IO.Directory.GetCurrentDirectory() #>
gives
/home/earlz
where I want him to give something like
/home/earlz/MyProject
How do I solve this problem?
Also, I tried hostpecific and Host.ResolvePath, but I have a NotImplementedException
source share