Got it working by making a full path reference to the Xml script. Not sure what's going on with the baseDirectory, for either <nant/> or <exec/>, but it doesn't seem to do what you'd expect. It never lets go of the project directory in spite of the full path I give it.
On Wed, Aug 17, 2011 at 9:30 AM, Michael Powell <[email protected]>wrote: > I am receiving the error: > > NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010) Copyright (C) 2001-2010 > Gerry Shaw http://nant.sourceforge.net For more information regarding the > cause of the build failure, run the build again in debug mode. Try 'nant > -help' for more information BUILD FAILED Could not find a '*.build' file in > '<MyProjectWorkingDir />' > > When I try to run MyScript.xml through the NAnt block. > > I've read through the message here, > http://www.mail-archive.com/[email protected]/msg07952.html, > and it seems like we must name the script MyScript.build for this to work? > > However, the same NAnt script can be run from the command line with: > > nant.exe -buildfile:MyScript.xml [...] <target> > > And it works just fine apart from CC.NET integration. > > If we must rename our NAnt tools with .build extension in order for CC.NETto > be happy, so be it, but MyScript.xml doesn't seem a "build-worthy" type > of script in the sense it is one cog in a greater build process. > > Any thoughts? Suggestions? > > Thank you... >
