I have class library A and library B with T4 template.
B references A, and assembly directive exist inside template:
<#@ assembly name="$(ProjectDir)$(OutDir)A.dll" #>
When I run template transformation error is shown:
Compiling transformations: Metadatafile: 'path\A.dll' could not be found.
But this file is there!
I get this error in VS 2012.
Have no idea what causes this error.
Update
Well, I found a mistake in assembly directive, just mistyped.