I'm trying to reference a solution generated assembly from a T4 template that I'm invoking from the Package Manager Console using the pattern of .ps1 and .cs.t4 template files created by "scaffold customscaffolder".
If I add an assembly reference like this:
<#@ assembly name="C:\full\path\to\solution\project\bin\foobar.dll" #>
it works. But that won't work for anyone else...
If I attempt this:
<#@ assembly name="$(ProjectDir)bin\foobar.dll" #>
it fails to find the assembly. (Yes the assembly is in the bin subfolder of the project selected as the "Default Project" for the Package Manager Console.
I recognize this may be a T4Scaffolding package issue. Or just me being clueless.
Any help in understanding how best to do this would be appreciated.