Hi.

You can use a condition statement like this.

*if(System.Environment.OSVersion.Platform == PlatformID.Unix)

**Here is the link to the Mono API:*
http://www.go-mono.com/docs/index.aspx?link=T%3aSystem.OperatingSystem%2f*

However, I can't find a way to check if its in MAC.

Hope this helps,

Marc Glenn

Vladislav Rastrusny wrote:
Hello.

Is there a way to reliably determine OS, application is running on in Mono?
My application needs to access files of some external application
(also multiplatform) and those files are located in different places
depending on OS.
On Windows it is under ApplicationData, on Linux under /home/user/app
and on MacOS... I don't know ;) Never installed it.

Thanks in advance.
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list



_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to