Ian
Thomas,
I just had to deal with this one myself, for that same DLL. For some reason even when you use the fileset's "ASIS" attribute to force inclusion of the dll, CSC does not get search the GAC for the reference. Which seems a little odd, but I'm accepting that it's a good idea.
I can however tell you how we reference that particular DLL in a drive-letter-agnostic way:
<readregistry property="vs.pias"
key="SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\Primary Interop
Assemblies\" hive="LocalMachine" />
...
<references>
<includes name="${vs.pias}ADODB.dll" />
...
</references>
...
hope this helps,
Bruce
-----Original Message----- From: Thomas Marshall [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 7:35 AM To: [EMAIL PROTECTED] Subject: [Nant-users] How to Reference Files in the GAC
I'm trying to link to the ADODB.dll library that is stored in the GAC. I'd like to be able to build using nant without using the full path to the file in the GAC. For example:
C:\WINNT\assembly\GAC\ADODB\7.0.3300.0__b03f5f7f11d50a3a\ADODB.dll
Is there some way to set up my references to avoid this? If not, is it a better idea to copy the DLL to my lib directory and treat it like a third party library?
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users