Hi I am just getting started with Nant. I want to compile a asp.net 2.0 website. The script below does stuff, but there is a deliberate compile time error. I thought this would cause the build to fail. Also contents of the bin folder in the root that are used by the website are not copied. Any pointers or scripts would be appreciated. Regards, Chris.
<?xml version="1.0"?> <project name="BHIntranet" default="asp.compile" > <target name="asp.compile" description="Compiles the webapp"> <delete dir="build\dist" if="${directory::exists('build\dist')}" /> <delete> <fileset basedir="build\aspprecompile"> <include name="**\*" /> </fileset> </delete> <copy todir="build\aspprecompile"> <fileset basedir="C:\Documents and Settings\CHRIS\My Documents\Visual Studio 2008\WebSites\BHIntranet"> <include name="*" /> </fileset> </copy> <copy todir="build\aspprecompile\bin"> <fileset basedir="build"> <include name="*.dll" /> </fileset> </copy> <exec program="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe" useruntimeengine="true"> <arg value="-p" /> <arg value="build\aspprecompile" /> <arg value="-v" /> <arg value="aspprecompile" /> <arg value="build\dist" /> </exec> </target> </project> ------------------------------------------------------------------------- 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