I have a T4 template that I have created to use FxCop's Introspection engine however, my reference to it only works when I use an abolute path on my local machine.
<#@
assembly
name="C:\Program
Files\Microsoft FxCop 1.35\FxCopSdk.dll" #>
<#@
assembly
name="C:\Program
Files\Microsoft FxCop 1.35\Microsoft.Cci.dll" #>
When I change these to:
<#@
assembly
name="FxCopSdk.dll"
#>
<#@
assembly
name="Microsoft.Cci.dll"
#>
It does not load because it is executing in a temp directory. I understand this. However, if I had a Reference path in the project properties or I add a project reference to the DLL in my class library, throws the same exceptiong.
According to Oleg's blog, it is supposed to look at the abolute path, then GAC, then project reference paths, then project references. It does not appear to be doing this.
I am using VS2010