What about a <framework> task that sets appropriate properties based on provided flags? This could allow us to hide a number of different tests to select appropriate frameworks:

<!-- Select the currently executing framework -->
<framework type="current" />

<!-- Would these be useful at all? -->
<framework type="latest" />
<framework type="earliest" />

<!-- Selects (in order of preference) .NET 1.1, .NET 1.0, Mono or if none found, the current framework -->
<framework type="net-1.1,net-1.0,mono,current" />


Matt.

Ian MacLean wrote:
Hi Martin,
I've been thinking about adding autodetection of frameworks so that if the default doesn't exist then try the one that nant is running with - maybe scanning thru the config file to get a match. This issue is tripping up a lot of users particularly as more people move to 1.1 only systems and we set 1.0 by default.


The same issue occurs on linux with people who have mono installed in /usr/bin/ or some location other than /usr/local/bin.

Ian

Martin Aliger wrote:


Framework 'net-1.0' does not exist or is not specified in the NAnt configuration file. Defaulting to no known framework. Buildfile: file:///E:/src/extern/nant/NAnt.build Target(s) specified: test

BUILD FAILED
----
aha - i have only net-1.1 installed so i need to edit .config. again -
maybe add some message for newbies? or autodetect it somehow. I'm not sure
here...


Regards,
Martin

PS: "tests/NAnt.Core/NAnt.Core.build build" phase is failing for me



-------------------------------------------------------
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-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers







------------------------------------------------------- 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-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to