your summary of the -k switch usage is correct. To set the framework to build with inside your build file use:
<!-- build net-1.0 --> <property name="nant.settings.currentframework" value="net-1.0" /> ... ... <!-- build net-1.1 --> <property name="nant.settings.currentframework" value="net-1.1" />
nant.settings.currentframework is a special property name - changing it will change the current framework that you are building against.
Ian
All,
I noticed the following note in the release notes for .84
*On systems with both the .NET Framework 1.0 and .NET Framework 1.1 installed, NAnt will now execute on the .NET Framework 1.1 by default. Note, the default target framework has remained unchanged, and is still .NET Framework 1.0.
The build server that my group uses has both frameworks on it, 1.0 and 1.1, however I need to specify that certain projects still build to 1.0 and others to 1.1.
How do I do this?
I see there is a command line argument
-defaultframework:<text> -k:<text>
And I am assuming that the <text> corresponds to the "net-1.0", "net-1.1", etc in the nant.exe.config file.
To build against 1.1, the command line would be
"nant my.build -k:net-1.1"
And to build against 1.0
"nant my.build -k:net-1.0" or just "nant my.build" since the default target is still 1.0.
Am I understanding this correctly?
Is there any way to specify this in a property in my *.build file?
Thanks, Jason
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users