【发布时间】:2015-01-22 04:00:42
【问题描述】:
无论使用什么方法在汇编指令中指定文件,T4 引擎都找不到指定的文件。
<#@ assembly name="$(SolutionDir)packages\TestPackage\lib\net45\Test.dll"#>
或
或任何其他方法都会导致相同的未找到问题。模板引擎似乎能够读取文件并显示其版本信息,即使它找不到它。
Errors were generated when initializing the transformation object. The transformation will not be run. The following Exception was thrown:
System.IO.FileNotFoundException: Could not load file or assembly ‘Test, Version=1.0.1.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
表示缺少依赖项。程序集没有依赖项。
为什么 T4 引擎找不到我的程序集?
【问题讨论】:
标签: .net visual-studio .net-assembly t4