T4 Toolbox - Referencing Class in Current Assembly

后端 未结 4 1698
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 08:48

I am writing a T4 script which reflects over certain classes and provides code generation based on them. The problem is that my script errors out, saying that the classes in my

4条回答
  •  星月不相逢
    2021-02-19 09:32

    For some reason I couldn't get @brian solution working. I ending up doing this In my case T4Generators was my seperate project in the same solution.

    <#@ assembly name="$(SolutionDir)\T4Generators\bin\Debug\T4Generators.dll" #>
    <#@ import Namespace="T4Generators" #>
    

提交回复
热议问题