Bert Jan Lappenschaar wrote:
you use the full file path to the assembly you want to reference. The exception to this is when you reference system assemblies. ie when you specifyImagine there are two different versions, version 1.0.0.0 and 2.0.0.0 of the same assembly in the GAC (so the assembly must have a strong name).
How can I reference to a specific assembly (i.e. version 2.0.0.0) in the Files section of the Reference section in a CSC task?
<include name="System.Xml.dll" /> nant automatically finds the version for the framework version you are currently targetting so:
for .net 1.0 : C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Xml.dll
and for 2.0 it will be :
C:\WINDOWS\Microsoft.NET\Framework\v2.0.xxxx\System.Xml.dll
for your own assemblies just use the full path to the version you require
note that the gac is a mechanism for runtime resolution of assemblies. It is not intended to be used fr referencing assamblies at compile time.
Can I add parameters to each Includes tag in the references section? IsI'm not sure what paramaters you are thinking of. There is certainly documentation about the Includes tag. See:
there documentation about this?
http://nant.sourceforge.net/nightly/help/types/assemblyfileset.html
Ian
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
