I am currently working with a VS.Net solution that includes a web project.  I am listing the following snippet from my build file in the hopes that someone can assist me.

 

<solution solutionfile="${build.sourcedir}\CTIP_Web.sln" configuration="${config}" outputdir="${build.dir}" verbose="true" enablewebdav="false">        

            <webmap>

                        <map url="" path="${build.webproj.path}\TIP.vbproj" />

            </webmap>

            <assemblyfolders>

                        <include name="${build.InteropDirectory}" />

            </assemblyfolders>      

</solution>

 

I am getting the following error when trying to build the solution:

 

 [echo] current webmap path: E:\Data\Projects\CTIP\ctip_build\build\tip_build\TIP.vbproj

 [solution] Starting solution build.

 [solution] Cleaning up temp folder 'C:\DOCUME~1\ceelya\LOCALS~1\Temp\t3jx2cyj'.

 

BUILD FAILED

 

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

NAnt.Core.BuildException: Cannot build web project 'http://localhost/TIP/TIP.vbproj'.  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.

   at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMaps, FileSet excludesProjects, DirectoryInfo outputDir, GacCache gacCache, ReferencesResolver refResolver) in e:\Data\Nant\nant-0.85-nightly\src\NAnt.VSNet\Solution.cs:line 73

   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 380

   at NAnt.Core.Task.Execute() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Task.cs:line 177

   at NAnt.Core.Target.Execute() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Target.cs:line 249

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Project.cs:line 876

   at NAnt.Core.Project.Execute(String targetName) in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Project.cs:line 846

   at NAnt.Core.Tasks.CallTask.ExecuteTask() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Tasks\CallTask.cs:line 117

   at NAnt.Core.Task.Execute() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Task.cs:line 177

   at NAnt.Core.Target.Execute() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Target.cs:line 249

   at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Project.cs:line 876

   at NAnt.Core.Project.Execute() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Project.cs:line 833

   at NAnt.Core.Project.Run() in e:\Data\Nant\nant-0.85-nightly\src\NAnt.Core\Project.cs:line 902

 

What I am trying to do is build a project that has a path of “http://localhost/TIP/TIP.vbproj” in the .sln file but is actually mapped on my machine to http://localhost/TIPBUILD/Tip.vbproj.  It appears as though the solution task code (after stepping through in debug mode) always throws an exception if the url in the <webmap> collection does not match the project path in the .sln file.  Is this true?  I may be missing something but I thought the whole point of the webmap is to allow for mapping to urls other than the hard-wired one in the .sln file.  Anyway, if anyone has experienced similar issues or has any ideas I would appreciate it.

 

Thanks.

 

Reply via email to