[Mono-list] Re: Determine the name and/or kind of CLI runtime environment

Robert Jordan robertj at gmx.net
Mon May 30 05:28:49 EDT 2005


Kornél,

> There are at least three of them:
> -Microsoft .NET Framework
> -Mono
> -DotGNU Portable.NET
> 
> They have different interfaces to low level runtime functionality and it is
> good if an error report contains the name of the CLI runtime as well.
> 
> What do you recommend on detecting Mono from managed code?

isMono =
   (int)Environment.OSVersion.Platform == 128 ||  // Fw 1.1
   (int)Environment.OSVersion.Platform == 4;      // Fw 2.0

I don't know how DotGNU can be detected.

Rob



More information about the Mono-list mailing list