public static int Main(string[] args) { BuildContentTool tool = new BuildContentTool(new ConsoleOutputter()); try { ((IProcessCommandLine)tool).ProcessCommandLine(args); tool.Execute(); } catch (Exception e) { tool.Output.Error(e.Message); } return(tool.ExitCode); }
public static int Main(string[] args) { BuildContentTool tool = new BuildContentTool(); try { ((IProcessCommandLine)tool).ProcessCommandLine(args); tool.Execute(); return tool.HasOutputErrors ? 1 : 0; } catch (Exception e) { ConsoleUtility.WriteMessage(MessageType.Error, e.ToString()); return 1; } }
public static int Main(string[] args) { BuildContentTool tool = new BuildContentTool(); try { ((IProcessCommandLine)tool).ProcessCommandLine(args); tool.Execute(); return(tool.HasOutputErrors ? 1 : 0); } catch (Exception e) { ConsoleUtility.WriteMessage(MessageType.Error, e.ToString()); return(1); } }