[Mono-list] Get Mono version at run-time
Chuck Esterbrook
chuck.esterbrook at gmail.com
Tue Dec 2 05:48:40 EST 2008
Works great. Thanks.
-Chuck
Charlie Poole wrote:
>
> For NUnit, I invoke Mono.Runtime.GetDisplayName. It's not
> public, so I invoke it by reflection. It gives a string
> like "Mono 1.2.6", which you can parse to get the version
> number or just use for display as I do.
>
> Charlie
>
>> -----Original Message-----
>> From: mono-list-bounces at lists.ximian.com
>> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of
>> Chuck Esterbrook
>> Sent: Monday, December 01, 2008 11:27 AM
>> To: mono-list at lists.ximian.com
>> Subject: [Mono-list] Get Mono version at run-time
>>
>>
>> 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-tp20776236p
>> 20776236.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Mono-list maillist - Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
--
View this message in context: http://www.nabble.com/Get-Mono-version-at-run-time-tp20776236p20789826.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list