Hello!
I have a solution with several projects and one of them is a web
project. I noticed that the web project is being skipped by the nant
build, I don't know why. I think I did set the <map> element
correctly. Does someone know what should I do to avoid it being
skipped? The build script and build log are attached.
Thanks,
Celio Cidral Junior
WEG Eletric
Brazil
<?xml version="1.0" ?>
<project name="Ensaios" default="build"
xmlns="http://nant.sf.net/schemas/nant.xsd">
<description>Ensaios</description>
<property name="configuration" value="AutomatedBuild" overwrite="false"
/>
<property name="dir.build" value="bin" />
<target name="build" depends="clean, prepare, compile"
description="Compila a solution deletando binários existentes" />
<target name="compile">
<solution solutionfile="Weg.Applications.ENS.sln"
configuration="${configuration}" outputdir="${dir.build}">
<webmap>
<map url="http://localhost/ens" path="Web"
casesensitive="false"/>
</webmap>
</solution>
</target>
<target name="clean">
<delete dir="${dir.build}" if="${directory::exists(dir.build)}"
failonerror="false" />
</target>
<target name="prepare">
<mkdir dir="${dir.build}" />
</target>
</project>
Buildfile: file:///C:/Projetos/ENS/nant.build
Target framework: Microsoft .NET Framework 1.1
Target(s) specified: build
clean:
[delete] Deleting directory 'C:\Projetos\ENS\bin'.
prepare:
[mkdir] Creating directory 'C:\Projetos\ENS\bin'.
compile:
[solution] Starting solution build.
[solution] Building 'Weg.Applications.ENS.Model.Interfaces' [AutomatedBuild]
...
[solution] Skipping 'Weg.Applications.ENS.Web' [AutomatedBuild] ...
[solution] Building 'Weg.Applications.ENS.Model' [AutomatedBuild] ...
[solution] Building 'Weg.Applications.ENS.Model.Transformadores'
[AutomatedBuild] ...
[solution] Building 'Weg.Applications.ENS.Controller' [AutomatedBuild] ...
[solution] Building 'Testes.Weg.Applications.ENS.Model.Transformadores'
[AutomatedBuild] ...
[solution] Building 'Weg.Applications.ENS.Model.Motores' [AutomatedBuild] ...
[solution] Building 'Testes.Weg.Applications.ENS.Model.Motores'
[AutomatedBuild] ...
[solution] Building 'Testes.Weg.Applications.ENS.Model' [AutomatedBuild] ...
build:
BUILD SUCCEEDED
Total time: 8.2 seconds.