Oliver,
This is probably a question best directed to the NAnt user mailing list!
Looking at the log4net NAnt build you can see that you can do:
<if test="${framework::exists('net-1.0')}">
<call target="target name"/>
</if>
You will need a recent nightly build of NAnt 0.85 to do this.
Nicko
> -----Original Message-----
> From: Oliver Wulff [mailto:[EMAIL PROTECTED]
> Sent: 15 October 2004 09:18
> To: [email protected]
> Subject: Calling target depending on current .NET version
>
>
>
>
>
> Hi
>
> I'm using the same build xml to build a project for .NET
> Framework 1.0 and 1.1.
>
> I control the .NET version with the following properties:
> <property name="version.net.framework" value="1.1" />
> <property name="nant.settings.currentframework"
> value="net-${version.net.framework}"/>
>
> Now, I need to call a target only when .NET version 1.0 is
> active. Does there exists a property which is only set in this case?
>
> Thanks for help
> Oliver
>
>
>
>
>
>
>
> ******************* BITTE BEACHTEN ******************* Diese
> Nachricht (wie auch allf�llige Anh�nge dazu) beinhaltet
> m�glicherweise vertrauliche oder gesetzlich gesch�tzte Daten
> oder Informationen. Zum Empfang derselben ist (sind)
> ausschliesslich die
> genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
> irrt�mlicherweise erreicht hat, sind Sie h�flich gebeten,
> diese unter Ausschluss jeder Reproduktion zu zerst�ren und
> die absendende Person umgehend zu benachrichtigen. Vielen
> Dank f�r Ihre Hilfe.
>
>