From: Tom L. <tho...@ko...> - 2004-06-30 19:33:04
|
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 |