[Mono-list] Hard coded System.Environment.OSVersion...

Sebastien Pouliot spouliot@videotron.ca
Thu, 22 Apr 2004 07:32:57 -0400


I have a (local) patch that returns the true version number on Windows and
the value of "uname -r" on Linux.
I'll clean it up and sent it for review.

Sebastien Pouliot
http://pages.infinit.net/ctech/poupou.html


-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of
jonathan.cooper@syntegra.com
Sent: 22 avril 2004 04:54
To: mark.easton@blinksoftware.co.uk
Cc: mono-list@lists.ximian.com
Subject: RE: [Mono-list] Hard coded System.Environment.OSVersion...


5.1.2600.0 was the original build number of Windows XP, and I suspect is a
placeholder until the required functionality is completed (very much like
the
class which returns the system drives is currently hard coded to "c:" and
"a:" for windows for now)

Jon

-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com] On Behalf Of Mark Easton
Sent: Wednesday, April 21, 2004 11:45 AM
To: mono-list@lists.ximian.com
Subject: [Mono-list] Hard coded System.Environment.OSVersion...

Okay, it's been a bit of a while since I pestered the list, so here I am
with
another pesky question.

I know the System.Environment.OSVersion property is hard coded to 5.1.2600.0
(which PNET have copied) but I don't have a complete understanding of why
this is.

I was thinking that some OSes like GNU/Linux don't have definitive version
numbers (although I guess the kernel build gets close), but since a number
of
OSes do have definitive version numbers, and I right in assuming the value
might be retrieved from an internal call in due course?

Cheers,

Mark

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list



********************************************************************

This email may contain information which is privileged or confidential. If
you are not the intended recipient of this email, please notify the sender
immediately and delete it without reading, copying, storing, forwarding or
disclosing its contents to any other person
Thank you

Check us out at http://www.btsyntegra.com

********************************************************************

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list