I do it like this: <target name="build" depends="build-${nant.settings.currentframework}" /> <target name="build-net-1.0" depends="build-common, tools" /> <target name="build-net-1.1" depends="build-common, tools" /> <target name="build-netcf-1.0" depends="build-common" /> <target name="build-mono-1.0-linux" depends="build-common, minitools, linuxtoolwrappers" /> <target name="build-mono-1.0" depends="build-common, minitools" />
which calls a dynamically calculated target name based on the currentframework. All you need to do is to provide bodies for the "build-*" targets. I use "depends", but that's not necessary. Jarek ----- Original Message ----- From: "Brar Piening" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 20, 2003 12:03 PM Subject: [Nant-users] [RE-SENT] How to react on the value of nant.settings.currentframework during build > Hi there, > > to build our .Net Data Provider I have to treat some issues when building > for the .Net Compact Framework (prepare resx-files, disable design time > support, include different assemblies, ...). > Is there any way to find out which framework I'm building for (at runtime)? > Im thinking of something like <if currentframework="netcf-1.0></if>. > > Regards, > > Brar Piening > > > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo > The Event For Linux Datacenter Solutions & Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > Nant-users mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users