RE: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-10 Thread Jörg Rosenkranz
Hi Michi, > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Michi Henning > > Another way to do this is to invert the test and avoid the > issue entirely: And the application is broken when an enum value Win64 is introduced. I think Miguels test

Re: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-10 Thread Michi Henning
Miguel de Icaza wrote: Hello, 2. Lots of existing code don't care about the framework version. In that case it's easier to use code that will work on both versions, like: using System; class Program { static void Main () { int p = (int) Environment.OSVersion.Platfor

Re: [Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-09 Thread Miguel de Icaza
Hello, > 2. Lots of existing code don't care about the framework version. In that > case it's easier to use code that will work on both versions, like: > > using System; > > class Program { > > static void Main () > { > int p = (int) Environment.OSVersion.Platform; >

[Mono-devel-list] Environment.OSVersion.Platform for Unix

2005-05-09 Thread Sebastien Pouliot
Hello, The original frameworks (both 1.0 and 1.1) didn't have a value to identity Unix (and Unix-like) operating systems. Mono has been using the value 128 up to now to identity them. The framework v2.0 introduce a new Unix enum value (4) in PlatformID, but this isn't compatible with the existing