The PATH attribute on the <map> element is relative already.  I use
something like this and it works fine:

Url="http://localhost/SubDir/MyProject.csproj";
Path="SubDir\MyProject.csproj "
 

Tony


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Howard
Cheng
Sent: Friday, May 06, 2005 11:42 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] <webmap> not mapping
Importance: Low

Hello,

I have an NAnt build script which is not building the ASP.NET solution. 
I've got the <webmap> attribute going, and I've verified the path to the
project file is correct, but it still can't seem to find it.

Here is the error message:

Cannot build web project 'http://localhost:/LMGAdmin/LMGAdmin.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.:

Here is what I have:

<solution configuration="release" solutionfile="${src.dir}\LMG\LMG.sln" 
outputdir="${built.dll.dir}" if="${debug=='false'}">
        <webmap>
                <map url="http://localhost/LMGAdmin/LMGAdmin.csproj"; 
path="${src.dir}\LMGAdmin.csproj" />
                <map url="http://localhost/LMGService/LMGService.csproj";

path="${src.dir}\LMGService\LMGService.csproj" />
                <map url="http://localhost/LMGWeb25/LMGWeb25.csproj"; 
path="${src.dir}\LMGWeb25\LMGWeb25.csproj" />
        </webmap>
</solution>

I've even replaced the ${src.dir} variable with the exact absolute path
(C:\Projects\...) and I continue to see the message.

I've successfully used NAnt several times to build solutions and I
always work off the same template, so I know this *should* work.

My NAnt version is 0.85.1793.0.

Any help would be greatly appreciated. Thanks.

--
::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/
Wise-cracking quote goes here.


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events,
4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to