Pedro, If I've well understood, you need something like this:
<target name="build" description="My description"> <csc target="exe" output="bin/asm-info.exe"> <sources basedir="." failonempty="true"> <includes name="*.cs"/> </sources> <references basedir="../AsmIngoTags/bin" failonempty="true"> <includes name="*.dll"/> </references> </csc> </target> Eventually look at http://developer.agamura.com/technotes.html; here you can find a document titled "Building Projects with NAnt", which provides helpful examples. Gius_. On Sun, 2003-12-28 at 11:08, Pedro Santos wrote: > Hi there. How can I add a dll reference to csc? From what I could > understand from the docs, I could do it like this: > > <target name="build" description="Compiles asm-info.exe"> > <csc target="exe" output="bin/asm-info.exe" > > > <reference basedir="../AsmIngoTags/bin/" > failonempty="true"> > > <includes name="AsmInfoTags.dll" /> > > </reference> > > <sources> > <includes name="*.cs" /> > </sources> > </csc> > </target> > > I would like to compile all the cs files in '.' dir, but add a reference > to a DLL in some other dir. > > Thanks. -- ---------------------------------------- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web: www.agamura.com ---------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users