Alternatively, if you have Visual Studio installed you can use an exec task to call devenv with the 'clean' option before building. Something like this:
<exec program="devenv.com" commandline="${yourSolutionFilename} /clean ${yourSolutionConfiguration)" /> It would be nice to have a 'clean' attribute for the solution task though... Cheers, Matt On 8/10/05, Tim Posey <[EMAIL PROTECTED]> wrote: > > > > Xuhui, > > > > You might want to create a 'clean' task to run before performing your > <solution> task. This task should delete the bin/obj folders (if it's a > Visual Studio project) containing all of the .exe's, .dll's, .obj's, and > other compiled assets that you may have. This will then force a complete > rebuild; and ensures you are always using the latest dependencies. This > will happen regardless of the timestamp. > > > > Best Wishes, > > > ____________________________________ > Timmothy C. Posey > Software Engineer > CTS, Inc. > http://www.AskCTS.com > > ________________________________ > > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Xuhui Duan > Sent: Tuesday, August 09, 2005 4:53 PM > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] Nant <solution> task Rebuild Solution. > > > > Hi, > > > > Is there any way to set the <solution> task to rebuild the whole solution > regardless the files timestamps. > > Because we need this function. Thanks. > > > > > > CONFIDENTIALITY NOTICE: The materials in this electronic mail transmission > (including all attachments) are private and confidential and are the > property of the sender. The information contained in the material is > privileged and is intended only for the use of the named addressee(s). If > you are not the intended addressee, be advised that any unauthorized > disclosure, copying, distribution or the taking of any action in reliance on > the contents of this material is strictly prohibited. If you received this > electronic mail message in error, please immediately notify the sender by > sending an electronic message to [EMAIL PROTECTED], and > thereafter, destroy the electronic message immediately. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users