Paco,
We don't need to be able to determine the version number of the mono version that is in the path, we need to be able to determine which versions of Mono are installed.
Did you have a look at the bug report I submitted (http://bugzilla.ximian.com/show_bug.cgi?id=63278) ?
I'll talk to you on irc later ...
Gert
----- Original Message ----- From: "Francisco T. Martinez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Jacek Blaszczynski" <[EMAIL PROTECTED]>
Sent: Wednesday, August 18, 2004 4:46 PM
Subject: Re: [Nant-users] Detecting Mono or "Mono-SDK" on Win
Hola:
I was the one who wrote the installers for the Combined Mono Installer that is available at Novell Forge and that later was adopted by Novell at mono-project.com/downloads. During my design I intended to make the presence of Mono perceivable from the Windows Registry as well as through other command line friendly methods.
The command line mechanisms are:
mono --version // This is a good test
pkg-config --modversion mono // This is reporting 0.97 and I need to get from gonzalo what do we want to put here.
If you want to is use to build the installer you can look here (watch out for "word wrapping" on the URL):
http://forge.novell.com/modules/xfmod/cvs/cvsbrowse.php/prj2make-sharp/mono/installer/MonoSetup_1.0.iss?rev=1.5&content-type=text/vnd.viewcvs-markup
In the future(after Monday, August 23) you will be better served by looking here -- in the CVS section:
http://forge.novell.com/modules/xfmod/project/?monowin32
Paco http://www.mfconsulting.com/blog
Jacek Blaszczynski wrote:
Hello!
Thanks for info on error source. After updating nant.exe.config manually to
new registry keys everything seems to work fine.
Checking the way NAnt is using for detecting presence of any framework or
sdk one can conclude that there is, in my opinion, a design bug which will
prevent NAnt from using new versions of any framework which is not hardcoded
into config and NAnt i.e. Mono-1.0.1 (or higher) instead of Mono-1.0.
The way NAnt should take for checking framework presence or sdk presence is
a check for minimal version followed by automatic identification of all
versions which are higher than minimum requirement. Assuming backward binary
compatibility, which is almost always present, NAnt should be immune to all
version changes. This could be of major importance for those using Mono as
one would expect very often bug-fixes releases coming roughly every couple
of months (it is really very buggy stuff right now) and it is not very
realistic to expect all users to have nightly builds installed. I do not
know if this possible due to other reasons but could be a good "permanent"
fix to this problem.
Cheers
Jacek
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian MacLean Sent: Wednesday, August 18, 2004 9:59 AM To: Gert Driesen Cc: Jacek Blaszczynski; [EMAIL PROTECTED] Subject: Re: [Nant-users] Detecting Mono or "Mono-SDK" on Win
Gert Driesen wrote:
Ian,
I just found out that the new installer registers itself in a different location (HKLM\Novell\Mono).
I've added some info to the bug report (http://bugzilla.ximian.com/show_bug.cgi?id=63278). Can you have a look at it, and perhaps correct me if necessary (or make a better
proposal) ...
that looks fine. Lets wait for a reply -- and then update NAnt.exe.config appropriately to use the new settings.
Ian
Gert
----- Original Message ----- From: "Ian MacLean" <[EMAIL PROTECTED]> To: "Jacek Blaszczynski" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, August 18, 2004 5:41 AM Subject: Re: [Nant-users] Detecting Mono or "Mono-SDK" on Win
Jacek Blaszczynski wrote:
I'm fairly sure that the mono installers used to set those registry settings - maybe they no longer do so. Gert do you know any more about this ?Hello!
Trying to use framework::sdk-exists for Mono-1.0 I have noticed that it is not detected by NAnt on Win platform (nightly build of 2004-08-04).
My understanding is that Mono-1.0 and 1.0.1 installation does not set any standard registry entries,
Ian
so looking for it from NAnt will always fail.--
Furthermore NAnt does not detect Mono runtime presence. Everything is fine on SuSE 9.1 Pro though.
As this is a bit annoying discrepancy between docs and actual behaviour I would suggest to use other ways for detecting Mono or just leave it to the user with proper info in documentation.
Or am I doing anything wrong by using framework::sdk-exists('Mono-1.0') ?
Cheers
Jacek
Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
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
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk
Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off
Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users