Пример #1
0
        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);
        }
Пример #2
0
        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;
            }
        }
Пример #3
0
        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);
            }
        }