Cannot reference dependency assemblies in T4 template when using TransformOnBuild

后端 未结 4 946
忘掉有多难
忘掉有多难 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:49

    Unfortunately, the msbuild T4 host doesn't yet support embedded macro or msbuild variables in assembly names.

    However, it does support Windows environment variables "%foo%", so although it means some machine-level setup, you can get something that works across in-IDE and build time transforms.

提交回复
热议问题