Hi there,

posted this a couple of days back, but I still haven't figured it out.
It would be nice to know if it's something I'm doing wrong, or if it's
a Nant issue/feature that i need to work around.

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). However, 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)

Any help would be greatly appreciated-

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_idt12&alloc_id344&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to