On May 31 Gert Driesen said:

> NAnt tries to resolve assemblies assemblies that cannot be located in the
> current base directory, in the assembly directory of the current target
> framework. It does not try to reference assemblies in the GAC.

This is a problem for me. I'm using the Microsoft Enterprise Instrumentation
Framework (EIF). It has a managed API, and the DLL for it is copied into the
GAC when the EIF is installed. I need to reference that assembly for my
project.
It's not part of the framework, so NAnt doesn't find it in the assembly
directory
of the current target framework. It's not part of my project, so NAnt
doesn't
find it in the current base directory. (I need to reference other assemblies
for my
project, so I can't set the current base directory to the directory
containing the
EIF assembly.) The best workaround that I've found is to copy the EIF DLL
to my current base directory, but that means that I have to hard-code either
the
path to the GAC or the path to the EIF install directory in my build file.
Is there
a better workaround?

Tom Lathrop





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to