[Mono-dev] [PATCH] Environment.IsRunningOnWindows fix

Gert Driesen gert.driesen at telenet.be
Sun Aug 27 05:23:13 EDT 2006

Never mind, the internal property Environment.Platform always return 128 on
unix ...

The translation to PlatformID.Unix is done in the static OSVersion property.

> -----Original Message-----
> From: mono-devel-list-bounces at lists.ximian.com [mailto:mono-devel-list-
> bounces at lists.ximian.com] On Behalf Of Gert Driesen
> Sent: zondag 27 augustus 2006 13:19
> To: mono-devel-list at ximian.com
> Subject: [Mono-dev] [PATCH] Environment.IsRunningOnWindows fix
> Hi,
> The attached patch fixes an issue where the internal property
> Environment.IsRunningOnWindows return true when running on unix in the
> 2.0 profile.
> I don't quite understand why this issue did not yet cause any problems.
> Let me know if it's ok to commit.
> Gert

More information about the Mono-devel-list mailing list