Example #1
0
        public StudioRunner(BuildArgs args)
        {
            this.startInfo.CreateNoWindow  = true;
            this.startInfo.UseShellExecute = false;
            this.startInfo.WindowStyle     = ProcessWindowStyle.Hidden;
            this.startInfo.Arguments       = args.ToString();

            StudioDetector studioDetector = new StudioDetector();

            this.startInfo.FileName = studioDetector.DetectPath();
        }
Example #2
0
        public bool Parse(string[] args)
        {
            this.Args = new BuildArgs();

            if (args.Length != 3)
            {
                return(false);
            }

            int currentArg = 0;

            this.Args.SolutionFile = args[currentArg];
            ++currentArg;
            this.Args.BuildSwitch = args[currentArg];
            ++currentArg;
            this.Args.Configuration = args[currentArg];

            return(true);
        }