I have
seen simular problems using the solution task. The common item I am seeing
is that NAnt is not wanting to build my web project (web application).
When I run it again solutions that do not have a web project as the final
project it works fine. I always get the following
error
BUILD
FAILED
Error
checking whether 'C:\Inetpub\wwwroot\Orderform' is an enterprise template
project.
Access to the path "C:\Inetpub\wwwroot\Orderform" is denied.
Access to the path "C:\Inetpub\wwwroot\Orderform" is denied.
Here
is what I am using as the script
<?xml version="1.0"?>
<project name="OrderForm" default="build">
<description>Crystaltech's Order Form</description>
<property name="CompileMode" value="debug" overwrite="true" />
<target name="build" description="compiles the source code">
<solution verbose="true" configuration="${CompileMode}" solutionfile="C:\PROJECTS\CrystalTechSolutions\OrderformSolution.sln">
<webmap>
<map url=""http://localhost/Orderform/Orderform.vbproj">http://localhost/Orderform/Orderform.vbproj" path="C:\Inetpub\wwwroot\Orderform"/>
</webmap>
</solution>
</target>
</project>
<project name="OrderForm" default="build">
<description>Crystaltech's Order Form</description>
<property name="CompileMode" value="debug" overwrite="true" />
<target name="build" description="compiles the source code">
<solution verbose="true" configuration="${CompileMode}" solutionfile="C:\PROJECTS\CrystalTechSolutions\OrderformSolution.sln">
<webmap>
<map url=""http://localhost/Orderform/Orderform.vbproj">http://localhost/Orderform/Orderform.vbproj" path="C:\Inetpub\wwwroot\Orderform"/>
</webmap>
</solution>
</target>
</project>
At
first I thought that I had a permissions problem but it still will not work
after I give "everyone" full control access. I am wondering now if it has
something to do with the OS I am testing on. XP Pro is what I am
developing the build files on. I am also wondering if there is a bug in the
solution task.
Thank you,
Bill Barge
Programmer / Analysis
CrystalTech Web Hosting Inc.
Phone: 602-263-0300 x131
Fax: 602-263-0600
Email: [EMAIL PROTECTED]
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Mayert
Sent: Tuesday, November 15, 2005 7:04 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Calling Solution target to build complete solution
Are there any tricks
to make this work properly? I and using the solution task to simply run
the complete solution under each of the configurations that exist. Now
most projects build, but there are some projects that are simply
skipped entirely. And I do not mean skipped where it states in the
log file that it is skipping the project, it actually completely skips the
building of that project file. In the log it will state all the .vcproj
files that are being loaded, and the ones that are skipped are listed as loaded,
but that is the only mention of the project at all and again the build will
complete without even touching that project.
Some of the project
are even dependencies of other projects and I have gone in the properties of the
solution file to make sure all the skipped projects are set to build. I
could not see anything wrong with the solution file, but I can not explain why
some projects are skipped or not.
Is there anything
that needs to be done to the solution file to fix this issue, or anything in the
NAnt project that needs to be done to fix this?
Thanks,
SMART Technologies Inc.
Software Developer
Tel. 403.228.8552 Fax 403.228.2500
[EMAIL PROTECTED]
http://www.smarttech.com
Bringing people and ideas together. ™