Hi all,

I'm really in doubt about the useability of the solution task in nant. I
think the solution task is not flexible enough. Or maybe I'm not skillful
enough in building good buildfiles using the solution task, it will probably
be the last one ;) 
Problem 1 When I have a solution file with a web project in it, I want the
output of the web project to be put in the folder which is mapped to the
virtual directory of the webserver. This is not a real problem if I don't
set the outputdir of a solution. When using an outputdir everything is
compiled to one directory. Should I make a seperate task to build the
webproject?
Besides the output problem, I also wonder how to be able to use the comment
in vb files to generate documentation with Ndoc, which is made possible by
using VBCommenter.
Last problem is, how can I force a rebuild for a solution?
My buildfile looks like this :


<?xml version="1.0"?>
<project name="Shop" default="build">
    <property name="basename" value="Shop" />
    <property name="debug" value="true" />
    <property name="outputroot.dir" value="C:\DATA\DotNet\Saber\Visual
Studio Projects\ASRBizz\Shop" />
    <property name="debugfoldername" value="Debug" />
    <property name="releasefoldername" value="Release" />
    <property name="teststubsfoldername" value="TestStubs" />

    <target name="Build">
        <echo message="Root build directory = ${outputroot.dir}" />
        <solution solutionfile="Shop.sln" configuration="${solconfig}"
verbose="true" outputdir="${output.dir}">
            <webmap>
                <map url="http://localhost/WebUI/WebUI.vbproj";
path="C:\DATA\DotNet\Saber\Visual Studio
Projects\ASRBizz\Shop\WebUI\WebUI.vbproj" />
            </webmap>
        </solution>
    </target>
    <target name="BuildRelease">
        <property name="solconfig" value="release" />
        <property name="output.dir"
value="${outputroot.dir}/${releasefoldername}" />
        <call target="Build"/>
    </target>
    <target name="BuildDebug">
        <property name="solconfig" value="debug" />
        <property name="output.dir"
value="${outputroot.dir}/${debugfoldername}" />
        <call target="Build"/>
    </target>

</project>


Greetinx

S.


****************************DISCLAIMER*********************************** 
Deze e-mail is uitsluitend bestemd voor de geadresseerde(n). Verstrekking aan en 
gebruik door anderen is niet toegestaan. Fortis sluit iedere aansprakelijkheid uit die 
voortvloeit uit electronische verzending.

This e-mail is intended exclusively for the addressee(s), and may not be 
passed on to, or made available for use by any person other than the 
addressee(s). Fortis rules out any and every liability resulting from 
any electronic transmission.
*******************************************************************************



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to