I am converting our MSBuild scripts to NAnt and most of our solutions have been happily compiling using the <solution> task. We do have a handful of ASP.NET applications that need to be compiled as well, but I am having trouble getting this to work. I am using the NAnt 0.86 nightly build from 02-10-2008 so that I can get VS2005 support. I am not running IIS and I would prefer not to need to do so on my build server.
My simplest example is a “test wrapper” web site that is the testing project for a custom WebPart. This solution has one project that generates a class library (with the web part) and another “project” that is just a web site in a file directory. The project definitions from my solution file are shown below if it helps. So I have been trying the following solution task (hopefully the property names are descriptive enough): <solution configuration="${BuildConfig}" includevsfolders="true" outputdir="${OutputRoot}\${BuildConfig}\${SolutionName}" solutionfile="${SourceRoot}\${SolutionName}.sln" failonerror="true" verbose="${VerboseOutput}"> <assemblyfolders> <include name="${ReferenceRoot}\${BuildConfig}" /> </assemblyfolders> <!-- <webmap> <map url="http://localhost/PMI/${SolutionName}.csproj" path="${SourceRoot}\${SolutionName}\${SolutionName}.csproj" casesensitive="false" /> </webmap> --> </solution> I have tried with and without the webmap and I have tried a webmap who’s URL was a file:// pointing to the website directory. I always get the error: Error checking whether 'C:\APS\PMI\Dev\RootNS.Web\RootNS.Web.Portal.UI.Search\PMI' is an enterprise template project. Access to the path 'C:\APS\PMI\Dev\RootNS.Web\RootNS.Web.Portal.UI.Search\PMI' is denied. I don’t believe this “access denied” message, since I am running this as a member of the local administrators group and this same code works fin on all non-ASP.NET solutions. I am more inclined to believe that it is looking for something it can’t find, but what? Am I just doing this entirely all wrong, or is there something subtle I am missing? Thanks in advance. Tony <><><><> Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RootNS.Web.Portal.UI.Search", "RootNS.Web.Portal.UI.Search\RootNS.Web.Portal.UI.Search.csproj", "{44D1F85A-FD4E-43AB-8F65-5CE212313F1B}" ProjectSection(WebsiteProperties) = preProject Debug.AspNetCompiler.Debug = "True" Release.AspNetCompiler.Debug = "False" EndProjectSection EndProject Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "C:\...\PMI\", "RootNS.Web.Portal.UI.Search\PMI", "{1DDD45BD-976E-4EEE-B943-620724C1BA66}" ProjectSection(WebsiteProperties) = preProject Debug.AspNetCompiler.VirtualPath = "/PMI" Debug.AspNetCompiler.PhysicalPath = "RootNS.Web.Portal.UI.Search\PMI\" Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\PMI\" Debug.AspNetCompiler.Updateable = "true" Debug.AspNetCompiler.ForceOverwrite = "true" Debug.AspNetCompiler.FixedNames = "false" Debug.AspNetCompiler.Debug = "True" Release.AspNetCompiler.VirtualPath = "/PMI" Release.AspNetCompiler.PhysicalPath = "RootNS.Web.Portal.UI.Search\PMI\" Release.AspNetCompiler.TargetPath = "PrecompiledWeb\PMI\" Release.AspNetCompiler.Updateable = "true" Release.AspNetCompiler.ForceOverwrite = "true" Release.AspNetCompiler.FixedNames = "false" Release.AspNetCompiler.Debug = "False" VWDPort = "1939" EndProjectSection EndProject <><><><> ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users