Claytons answer is correct. However you need to be sure you're using the right terminology.
the current framework represents which version of csc.exe and libraries you want to target.
the supportedRuntime setting indicates which runtime nant itself will run against and has no bearing upon which framework you will target.
Ian
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
------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps1 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
