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 bool Execute() { BuildContentTool tool = new BuildContentTool(new MSBuildOutputter(buildEngine, taskName)); tool.Parser.CommandName = taskName; tool.ContentFile = new ParsedPath(this.ContentFile, PathType.File); tool.NoLogo = true; try { tool.Execute(); } catch (Exception e) { tool.Output.Error(e.Message); } return !tool.Output.HasOutputErrors; }
public bool Execute() { BuildContentTool tool = new BuildContentTool(new MSBuildOutputter(buildEngine, taskName)); tool.Parser.CommandName = taskName; tool.ContentFile = new ParsedPath(this.ContentFile, PathType.File); tool.NoLogo = true; try { tool.Execute(); } catch (Exception e) { tool.Output.Error(e.Message); } return(!tool.Output.HasOutputErrors); }