Hello Everybody, I am new to NANT. I have two build files defaultx.build and defaulty.build. I know that I need to use the -buildfile option to mention the buildfile to be used. However when I use any of the following syntaxes I get "The filename, directory name, or volume label syntax is incorrect" error.
NAnt -buildfile:defaultx.build NAnt -buildfile:..\defaultx.build NAnt -buildfile:"C:\nant-0.85\examples\HelloWorld\defaultx.build" Also I get the same error when I try to override the build file setting by trying: NAnt -D:debug=false clean build Please help. Following is the build file I am using: <?xml version="1.0"?> <project name="Hello World" default="run"> <property name="basename" value="HelloWorld"/> <property name="debug" value="true"/> <target name="clean"> <delete> <fileset> <include name="bin/${basename}-??.exe"/> <include name="bin/${basename}-??.pdb"/> </fileset> </delete> </target> <target name="build"> <mkdir dir="bin" /> <csc target="exe" output="bin/${basename}-cs.exe" debug="${debug}"> <sources> <include name="${basename}.cs"/> </sources> </csc> <jsc target="exe" output="bin/${basename}-js.exe" debug="${debug}"> <sources> <include name="${basename}.js"/> </sources> </jsc> <vbc target="exe" output="bin/${basename}-vb.exe" debug="${debug}"> <sources> <include name="${basename}.vb"/> </sources> </vbc> </target> <target name="run" depends="build"> <exec program="bin/${basename}-cs.exe" basedir="."/> <exec program="bin/${basename}-js.exe" basedir="."/> <exec program="bin/${basename}-vb.exe" basedir="."/> </target> </project> -- View this message in context: http://www.nabble.com/The-filename%2C-directory-name%2C-or-volume-label-syntax-is-incorrect-tp17375346p17375346.html Sent from the NAnt - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users