I'm building a couple of web projects as well. What I found was that if you use the <webmap> tag you don't need to create the IIS virtual directory at all. My build will work on any machine just by pulling the .build file out of VSS and running nant against it.
Here's my .build file. <?xml version="1.0"?> <project name="ReportsWeb" default="build"> <property name="config" value="Release" unless="${property::exists('config')}" /> <property name="vssPath" value="C:\Program Files\Microsoft Visual Studio\Common\VSS\srcsafe.ini"/> <target name="clean"> <delete dir="bin" failonerror="false" /> </target> <target name="get-from-vss"> <vssget details left out... /> </target> <target name="build" depends="clean,get-from-vss"> <solution solutionfile="ReportsWeb.sln" configuration="${config}" failonerror="true"> <webmap> <map url="http://localhost/ReportsWeb/Nwea.ReportsWeb.csproj" path="${nant.project.basedir}\Nwea.ReportsWeb.csproj" /> </webmap> </solution> </target> </project> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 10:58 PM To: [EMAIL PROTECTED] Subject: [Nant-users] Error Building Web Project Dear Gert : I'm using the nant(version is nant-0.85-nightly) to build the .net solution( the framework is 1.1 version) that include a web project.Some unimaginable things happend. the build file fragment is: <property name="Filename" value="F:\TestDailyBuild \ output \ TestDailyBuild \ TestSln \ Test.sln" /> <property name="Configuration" value="DEBUG" /> <property name="OutputFolder" value="F:\TestDailyBuild \ output \ sln"/> <target name="t1"> <vssget user="admin" password="" localpath="F:\TestDailyBuild \ output" replace="true" dbpath="\\ericzou\VSS\srcsafe.ini" path="$/" /> </target> <target name="t2" depends="t1" > <solution solutionfile="${Filename}" outputdir="${OutputFolder}\" configuration="${Configuration}" > <webmap> <map url="http://localhost / WebApplicatio444 / WebApplicatio444.csproj" path="F:\TestDailyBuild \ output \TestDailyBuild \ WebApplicatio444 \ WebApplicatio444.csproj" /> </webmap> </solution> </target> A: create a virtual directory on IIS ,the physical path is c:\ inetpub \ wwwroot \ WebApplication444 no error happend , B: create a virtual directory on IIS ,the physical pah is F:\ webproject \ WebApplication444, get the following error "Cannot build web project 'http://localhost/WebApplicatio444/WebApplicatio444.csproj please use <webmap> to map the given URL to a project-relative path,or specify enablewebdav="true" on the <solution> task element to use WebDAV." Must we create the web proejct under the wwwroot directory? Best Regards Eric 2004-11-24 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users