Can't reference an assembly in a T4 template
所以当我把
在T4模板中 <#@ assembly name="$(ProjectDir)$(OutDir)$(TargetFileName)" #>
,它说
The assembly $(ProjectDir)$(OutDir)$(TargetFileName) could not be loaded. There was an exception during load: A dependency could not be found!
据我了解,T4已更新为不锁定程序集,因此引用当前项目应该是安全的,但在具有依赖项的项目中,它似乎是可怕的。
如何找出无法加载的程序集?