Scott, What version of NAnt are you using ?
Using the latest NAnt nightly builds (http://nant.sourceforge.net/nightly/builds) you should not have to specify the path to the system assemblies at all, so you should be able to use : <csc target="library" warnaserror="true" output="${build.dir}/AddressTester.dll"> <sources> <includes name="**/AddressTester.cs" /> </sources> <references basedir="${build.dir}"> <includes name="**/*.dll" /> <includes name="mscorlib.dll" /> <includes name="System.dll" /> ...... </references> </csc> Hope this helps, Gert ----- Original Message ----- From: "Scott Arbiv" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 16, 2003 7:37 PM Subject: [Nant-users] Help with System.Collections... > I am trying to compile a file "AddressTester.cs" under windows XP & .net > 1.0. This file uses System.Collections. > I can't seem to compile it with nant. I tried adding the includes for > the M$ dll's and still nothing. > When trying to compile, it says > > [csc] Compiling 1 files to C:\gnucla\bin\AddressTester.dll. > C:\gnucla\src\addresstester.cs(111,2): error CS0246: > The type or namespace name 'Collections' could not be found (are > you missing a using directive or an assembly reference?) > > > Here is a segment of my build file. > <?xml version="1.0"?> > <project name="gnucla" default="build" optionstrict="false" > rootnamespace="Gnucla"> > > <!-- Not currently working due to "Collections" error --> > <!--csc target="library" warnaserror="true" > output="${build.dir}/AddressTester.dll"> > <sources><includes name="**/AddressTester.cs" /></sources> > <references basedir="${build.dir}"> > <includes name="**/*.dll" /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscorlib.dll" /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.dll" /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Data.dll" /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll" > /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms. > dll" /> > <includes asis="true" > name="C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.XML.dll" /> > </references> > </csc--> > > </target> > </project> > > Thanks! > Scott > > [EMAIL PROTECTED] > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users