[Mono-list] Get Mono version at run-time

Chuck Esterbrook chuck.esterbrook at gmail.com
Mon Dec 1 14:26:50 EST 2008


What's the best way to get the version number of Mono at run-time? For
example, 1.2.6 vs. 2.0.1?

I know you can detect Mono by seeing if the type Mono.Runtime exists, but
when reflecting on its members, I didn't see any version information.

I poked around the docs and did some searching, but "version" comes up in a
lot of contexts.

Just to be clear, I want something like:

    Console.WriteLine("Mono Version: {0}", Mono.Runtime.Version);

Thanks,
Chuck

-- 
View this message in context: http://www.nabble.com/Get-Mono-version-at-run-time-tp20776236p20776236.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list