The Environment class provides OSVersion (Microsoft Windows NT 5.1.2600.0) and Version (1.1.4322.573), which is the Framework version number. However, since Mono aspires to look *exactly* like the MS Framework, they have not provided a way to tell that you are running Mono instead of MS. I think the only way to tell would be to look for some of the Mono extension classes.
J. Edward Ellis Pacific Northwest National Laboratory (509) 375-3627 voice (509) 375-2379 FAX mailto:[EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tizio Incognito Sent: Friday, July 23, 2004 2:52 AM To: Mono List Subject: Re: [Mono-list] is there a way to start .exe without needing to type 'mono' on windows? Sam Jost said the following on 23/07/2004 10.30: >[SNIP] > >I could get my apps to use mono, but I would have to build a special release >for use with mono, even two I fear since I would need to use a different >call from Process to start mono on windows then I would need on unix (it >needs 'mono.bat' to find mono, and I don't think mono is ending in .bat on >unix *g*). > >Sam > > This is a common issue.. I'm also having trouble for this. I believe the best way to workaround is to detect internally if you're running on mono/linux, mono/win, ms framework/win, etc. Is there a way to do that? I think this can be useful also with Ado connection strings, and other exceptions... -- TI _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
