I am in the process of setting up my TDD and CI environment. I'm running 
VS2008, and a couple of other programs to get me started, they are NUnit and 
CruiseControl.Net. I am trying to configure NAnt to automate my solutions with 
a build file and running it from a batch file, this is what i did;... I added 
another directory to my trunk folder called build. In the build directory, I 
was instructed to keep my NAnt .build file (the XML configuration file that 
tells NAnt what to do), my batch files, results from the build process, and 
everything to do with the build process in it. so I created the build file. and 
call it Goodstart.build. I opend that file up and added some basic XML so that 
NAnt can do what it do. Then I put my schema file (nant.xsd) that was in the 
inital download in program files | Microsoft Visual Studio 9 | xml | schemas, 
so that Visual Studio intellisense could help guide me through all the various 
options of NAnt. I wrote my code in
 the Goodstart.build. I didn't want to manually type the commands in NAnt. I 
didn't want to have to do any manual tasks. So what I did was automate 
the (batch file) then went with automation (NAnt build files) to avoid any 
manual labour. So like I stated earlier in this paragraph. In my build 
directory I added two more files. The first file was build.bat file, which was 
the base batch file and then I created a clickToBuild.bat file which 
was created to pass parameters to my build.bat file. In the build.bat file I 
put this line of code ...\binaries\nant\nant.exe -buildfile:Goodstart.build %*  
then in the clickToBuild.bat I put this command build.bat compile & pause  then 
i clicked on my clickToBuild.bat file and I was expecting to see somethings 
compiling and BUILD SUCCEEDED but I didn't see that. Instead I saw 
C:\Projects\Goodstart\trunk\build.bat compile & pause 'build.bat' is not 
recognized as an internal or external command, operable program or
 batch file. How can I get this kink worked out and fix this problem 


      
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to