如果我在T4模板中引用一个64位的DLL,可以像这样:
<#@ assembly name="path\to\64bit.dll" #>
如果您使用TextTransform.exe运行它,会出现异常,显示:
There was a problem loading the assembly 'path\to\64bit.dll' The following Exception was thrown:
System.BadImageFormatException: Could not load file or assembly 'file:///path\to64bit.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.
有没有64位版本的TextTransform.exe?还是有其他方法可以使其工作?