On Thu, Mar 24, 2011 at 10:21 PM, RandomlyKnighted <thug...@asissweb.com> wrote: > Hey everyone, so this is my first Mono application and I'm trying to make it > for Windows, Linux, and Mac OS X. Currently I have my GTK# project and I > have an empty C# class file. I'm just wanting for someone to point me in the > right direction. Using this empty class file I would like to have my program > detect what operating system is running. Then I am going to call this class > file from my main class and use a select statement to have it do certain > things depending on which operating system is running. > > I just need help figuring out how to detect the operating systems. Can > someone point me in the right direction?
Have a look at http://www.mono-project.com/FAQ:_Technical, on the "How to detect the execution platform ?" question. In short, use the Environment.OSVersion.Platform enum. _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list