[Mono-list] Detect OS?
Curtis Wensley
curtis.wensley at gmail.com
Sat May 19 05:45:12 UTC 2012
Something like this works well to detect OS version, and whether it is
running on mono, mac, linux, or windows:
https://github.com/picoe/Eto/blob/master/Source/Eto/Misc/Platform.cs
Then you can just use Platform.IsWindows, Platform.IsLinux, Platform.IsMono,
etc.
Hope this helps!
Curtis.
--
View this message in context: http://mono.1490590.n4.nabble.com/Detect-OS-tp4645659p4645699.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list
mailing list