Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }