[Mono-devel-list] Check whether an app is running on Mono (was Re: [Mono-patches] mcs/class/corlib/Mono ChangeLog,1.1,NONE Runtime.cs,1.2,NONE)
Gert Driesen
gert.driesen at pandora.be
Fri May 14 02:15:02 EDT 2004
Hi,
I know of a few open-source projects that used the Mono.Runtime class to
determine whether their app is running on Mono :
// check a class in mscorlib to determine if we're running on Mono
if (Type.GetType("Mono.Runtime", false) != null) {
// we're on Mono
IsMono = true;
} else {
IsMono = false;
}
Ofcourse I have no problem with this class being removed, but it would be
good to agree on an another/better way to determine whether an application
is running on Mono (and not MS.NET), and document this somewhere. Any
proposal (eg. use a check for Mono.Math.BigInteger) ?
Thanks
Gert
----- Original Message -----
From: "Gonzalo Paniagua" <gonzalo at mono-cvs.ximian.com>
To: <mono-patches at ximian.com>
Sent: Friday, May 14, 2004 3:06 AM
Subject: [Mono-patches] mcs/class/corlib/Mono ChangeLog,1.1,NONE
Runtime.cs,1.2,NONE
> Update of /cvs/public/mcs/class/corlib/Mono
> In directory mono-cvs.ximian.com:/tmp/cvs-serv2248/Mono
>
> Removed Files:
> ChangeLog Runtime.cs
> Log Message:
> 2004-05-14 Gonzalo Paniagua Javier <gonzalo at ximian.com>
>
> * corlib.dll.sources: removed obsolete Mono/Runtime.cs
> * corlib_test.dll.sources: added BinderTests
> * Mono: removed obsolete directory.
> * Mono/ChangeLog: Removed file.
> * Mono/Runtime.cs: Removed file.
>
>
>
> --- ChangeLog DELETED ---
>
> --- Runtime.cs DELETED ---
>
> _______________________________________________
> Mono-patches maillist - Mono-patches at ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-patches
>
More information about the Mono-devel-list
mailing list