internal static int Main(string[] args) { if (args.Length == 0) { Usage(); return(1); } var allGood = true; foreach (var arg in args) { if (SharedUtil.IsSolutionFile(arg)) { allGood &= ProcessSolution(arg); } else if (Path.GetExtension(arg) == ".xml") { allGood &= ProcessStructuredLog(arg); } else { allGood &= ProcessTargets(arg); } } return(allGood ? 0 : 1); }
private static int MainCore(string[] args) { if (args.Length == 0) { Usage(); return(1); } var allGood = true; foreach (var arg in args) { if (SharedUtil.IsSolutionFile(arg)) { allGood &= ProcessSolution(arg); } else if (string.Equals(Path.GetExtension(arg), ".buildlog", StringComparison.OrdinalIgnoreCase)) { allGood &= ProcessStructuredLog(arg); } else { allGood &= ProcessTargets(arg); } } if (!allGood) { Console.WriteLine("Failed"); } return(allGood ? 0 : 1); }
private static int MainCore(string[] args) { if (args.Length == 0) { Usage(); return(1); } var allGood = true; foreach (var arg in args) { if (SharedUtil.IsSolutionFile(arg)) { allGood &= ProcessSolution(arg); } else if (Path.GetExtension(arg) == ".xml") { allGood &= ProcessStructuredLog(arg); } else { allGood &= ProcessTargets(arg); } } if (!allGood) { Console.WriteLine("Failed"); } return(allGood ? 0 : 1); }