noshyuz wrote:

is there a way to use the solution task to invoke a build from a .NET solution file to run the clean (or rebuild) target directly?

adding a separate target to the NAnt build file to delete directories and the like is clearly manual and error prone - what I'm looking for is something within NAnt to drive this task based on the solution file directly, so that changes to the solution file don't have to be replicated in several other scripts/targets.

It's actually not that error prone and doesn't require replication, at least for the sort of projects we use. For C# projects, just delete the bin and obj directories, for C++ projects, delete the Debug, Release, and temp directories, for web projects, delete the bin directory. All you need is one target (or one for each type of project, if you prefer), with the project file or directory parameterized in whatever way you prefer.

Gary






-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to