Cannot reference dependency assemblies in T4 template when using TransformOnBuild

后端 未结 4 834
忘掉有多难
忘掉有多难 2021-01-15 04:20

We\'re trying to use T4 with Visual Studio 2010 (SP1) to build scripts for another language that are based upon some of our existing C# classes. I\'m hoping for the followin

4条回答
  •  不知归路
    2021-01-15 04:47

    I created a seperate solution that contained my needed referenced assemblies. The I had my buildscript build the reference solution first, then transform the templates, then build the solution containing the generated code.

提交回复
热议问题