[Mono-list] Re: New Mono.Runtime.GetDisplayName() method

Robert Jordan robertj at gmx.net
Sun Jun 5 19:34:28 EDT 2005


Kornél,

> As a result of long discussion about the lack of a method to obtain the version of the Mono Runtime a new Mono.Runtime.GetDisplayName() method was added to mscorlib.dll.

Just to make the discussion even longer:
wouldn't be less intrusive to use the environment for
the display string? Something like that:

in mono/mono/mini/driver.c

g_setenv ("MONO_RUNTIME_VERSION", whatever);

from the managed side:

string rtlVersion =
   Environment.GetEnvironmentVariable("MONO_RUNTIME_VERSION");
if (rtlVersion != null) { ... }

Rob



More information about the Mono-list mailing list