Hi Brenton, You need to add this setting to your project: <property name="nant.settings.currentframework" value = "net-1.0"/>
Which will control what version of the .net framework is used to compile your app with nant. To set the runtime framework you need to add **something** like this to your app.config file (snipped from the NAnt.exe.config file): <configuration> <startup> <supportedRuntime version="v1.0.3705" /> <supportedRuntime version="v1.1.4322" /> </startup> </configuration> There is more information here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenre f/html/gnconsupportedruntimeelement.asp Hope that helps. Clayton -----Original Message----- From: Brenton House Sent: Thu 7/10/2003 11:50 AM To: [EMAIL PROTECTED] Cc: Subject: [Nant-users] Using multiple versions of framework I am trying to figure out what to add to my build script to be able to choose what version of the .NET runtime I want to use. I know that you can change settings in the NAnt.exe.config file but I want to change it at runtime. Is there a task built yet to be able to choose this? If not, I am going to write one as this is requirement for the project I am working on. I guess the other thing that could be done is change the attributes for the CSC task to be able to tell it to use either the 1.0 framework or the 1.1 framework. Well, hopefully someone has already done this and the documentation just hasn't been updated yet... Thanks! Brenton House
<<winmail.dat>>