No matter what method is used to specify a file in an assembly directive the T4 engine cannot find the file specified.
<#@ assembly name="$(SolutionDir)packages\TestPackage\lib\net45\Test.dll"#>
or <#@ assembly name="C:\Test.dll"#>
or any other method result in the same not found issue. The template engine seems to be able to read the file and will display its version information, even though it cannot find it.
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.
indicating a missing dependency. There are no dependencies for the assembly.
Why can the T4 engine not find my assembly?