T4 code generation during build, custom assembly reference
I have a T4 template that processes several .tt files in my project. I also have some custom classes I've defined to help with the code transformation process. <#@ template language="C#" hostspecific="True" debug="True" #> <#@ output extension="cs" #> <#@ assembly name="System.Core.dll" #> <#@ assembly name="$(TargetDir)\MyDependency.dll" #> This works in Visual Studio, I have a VS Macro which defines $(TargetDir) correctly. Now, I want to perform the code generation process during my build process. I added: <TransformOnBuild>true</TransformOnBuild> <OverwriteReadOnlyOutputFiles>true<