static int Main(string [] args) { #if !MONOMAC && !IKVM // for monotouch.dll we're using a the iOS specific mscorlib.dll, which re-routes CWL to NSLog // but that's not what we want for tooling, like the binding generator, so we provide our own var sw = new UnexceptionalStreamWriter(Console.OpenStandardOutput()) { AutoFlush = true }; Console.SetOut(sw); #endif try { return(Main2(args)); } catch (Exception ex) { ErrorHelper.Show(ex); return(1); } }
static int Main (string [] args) { #if !MONOMAC // for monotouch.dll we're using a the iOS specific mscorlib.dll, which re-routes CWL to NSLog // but that's not what we want for tooling, like the binding generator, so we provide our own var sw = new UnexceptionalStreamWriter (Console.OpenStandardOutput ()) { AutoFlush = true }; Console.SetOut (sw); #endif try { return Main2 (args); } catch (Exception ex) { ErrorHelper.Show (ex); return 1; } }