Ravisankar, Madhusudhanan wrote:

In our project - which we build using nAnt 0.84 - if I change any compiler option like "/clr", etc.,

You should upgrade to 0.85 RC3 or a more recent nightly as soon as possible. Definitely do this before putting significant work into your build files, because there are many incompatible changes.

As for changing the compiler option, do you mean in the .csproj file or in the NAnt build file. I'm not sure if the former works, but it probably should (though not necessarily for 0.85). The latter won't - NAnt has no way of knowing that the build file itself has changed since last run, and as far as I know, it doesn't check the existing output for the compiler options (and I'm not even sure if they're all available).

If you're just tweaking things, then the thing to do is to add a clean and/or rebuild target and manually clean things when you know it's necessary.

If this is a long-term problem, then the thing to do is to design your build files to understand various configurations, and make the target directories specific to the particular configuration.

Gary




-------------------------------------------------------
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

Reply via email to