Hi there,

this is probably a daft one, but I don't seem to be able to figure it
out. I have a pretty simple task set up as such:

<target name="c" description="Compiles the source code">

               <!-- set up a couple of filesets -->
               <fileset id="compileThis">
                       <include name="${base.code.dir}/**/*.cs" />
               </fileset>

               <fileset id="refThis">
                       <include name="${base.dir}/bin/*.dll" />
               </fileset>

               <!-- print out the contents of eachof the filesets to screen -->
               <foreach item="File" property="filename">
                   <in>
                       <items refid="compileThis"/>
                   </in>
                   <do>
                       <echo message="${filename}"/>
                   </do>
               </foreach>
               <foreach item="File" property="filename">
                   <in>
                       <items refid="refThis"/>
                   </in>
                   <do>
                       <echo message="${filename}"/>
                   </do>
               </foreach>

               <!-- compile the files in the fileset (using the second
fileset as
reference) -->
               <csc target="library" output="${dist.dll}" verbose="true">
                       <sources refid="compileThis"/>
                       <references refid="refThis"/>
               </csc>
       </target>

This correctly prints out the filenames of a bunch of *.cs and *.dll
files (so the <sources> and <references> elements are definitely not
empty), but the csc task doesn't seem to do anything - the dll isn't
created, and absolutely no output is given at all. Any ideas of what I
might be doing wrong? I am running Nant 0.85rc3 with .Net 1.1
(2.0beta1 is also installed, but I tell Nant to use 1.1 via the
nant.settings.currentframework property)

thanks,
Elie


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_ids93&alloc_id281&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to