I think maybe you can use a patternset to do this. Gert can may confirm this. Also, if you want you can grab the CI Factory nant stuff. He has a function that allows you to add/remove stuff to an existing fileset.
BOb -----Original Message----- From: Chris Snider [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 12:15 PM To: nant Subject: [NAnt-users] Fileset refID and adding files I was wondering if this is a bug, or a design decision I have a file set build as this <namespaceimports id="system.imports"> <import namespace="System" /> <import namespace="System.Collections" /> <import namespace="System.Data" /> <import namespace="System.Diagnostics" /> </namespaceimports> Later, in the compile target (vbc or csc), I'd like to be able to set the references element to <references refid="system.imports"> <import namespace="System.Web" /><!-- add the reference for *this* project --> </references> However, when I run the build, NAnt does not pickup the refID set and add the additional import to it, but only uses the original refID data and my build fails with a missing reference. Is by design or is this a bug and I should expect the final references to include all 5 imports? Thanks, Chris Snider ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users