public static bool RunningOnMacOSX() { switch (Environment.OSVersion.Platform) { case PlatformID.MacOSX: return true; default: return false; } }