I am in the process of converting our existing build enviroment over to NAnt and wanted to get the lists thoughts on some best practices.
Our build currently consists of a makefile that shells out to devenv compiling approximately 75 solutions files, that generate over 150 assemblies. There are about 500-600 source files in total. [1] I am currently thinking that a single build file would be the easiest to maintain. Another thought would be to create (generate?) a build file for every solution. [2] My build files seem to be a mix of configuration, actions and targets Example: I would like to be able to type on the command line >nant debug clean build test core.dataaccess where debug is the target build does the compilation test says run the unit tests core.dataaccess is the "solution" or combinations there of. ie: nant test core.dataaccess just does the tests To achieve this I have setup targets for each of the configurations (debug/release) and for each of the actions (test/build/clean) and for each solution (core.dataaccess). Inside each "solution target" I then test if a property has been set before performing the action Example: <target name="test"> <property name="action.test" value="true"/> </target> etc.... <target name="core.dataaccess"> <if ${action.clean}> -->Do clean </if> <if ${action.build}> -->Do build </if> <if ${action.test}> -->Do test </if> </target> Is this a recommended path? I think it would be generally cleaner if NAnt had a better seperation. thanks brant ... --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.502 / Virus Database: 300 - Release Date: 7/18/2003 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users