Gert Driesen wrote:

Ian,

What do you think about this topic ?  Can we continue to ignore this ?



Ignore what ? Are you suggesting we start allowing references directly from the gac ? I still think that is a *bad* idea for all the same reasons mention previously. For any sort of reproducable build you'll want to reference assemblies from a conssitent relative or absolute path and not from the gac location which could vary from machine to machine.

Tom - I'd reccomend putting that EIF dll in source control along with the source so that you can reference it from location relative to your project.

Ian

Thanks,

Gert

----- Original Message -----
From: "Tom Lathrop" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 30, 2004 9:32 PM
Subject: [Nant-users] Referencing assemblies in the GAC




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





--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
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