Hey Bill, you should be able to use the <nant/> task for this and set the 
current framework to the one you want to target.  Something like this should 
work:
 
    <property name="frameworks" value="mono-1.0 net-1.1"/>
        <foreach item="String" in="${frameworks}" property="framework" delim=" 
">
            <nant buildfile="[this-build-file]" target="build" verbose="true" 
inheritall="false">
                <properties>
                    <property name="nant.settings.currentframework" 
value="${framework}"/>
                </properties>
            </nant>
        </foreach>
 
Cheers,
 
Clayton

        -----Original Message----- 
        From: Bill Bither [mailto:[EMAIL PROTECTED] 
        Sent: Thu 4/7/2005 1:58 PM 
        To: nant-users@lists.sourceforge.net 
        Cc: 
        Subject: [Nant-users] Build 1.0 and 1.1 in same script
        
        

        Is it possible to create a nant file that builds to both versions 1.0
        and 1.1 of the .NET Framework?  I can accomplish this task with 2
        separate processes by setting the -t command option, but not in the same
        build file.
        
        Thanks,
        -Bill
        
        
        -------------------------------------------------------
        SF email is sponsored by - The IT Product Guide
        Read honest & candid reviews on hundreds of IT Products from real users.
        Discover which products truly live up to the hype. Start reading now.
        http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
        _______________________________________________
        Nant-users mailing list
        Nant-users@lists.sourceforge.net
        https://lists.sourceforge.net/lists/listinfo/nant-users
        

Reply via email to