static int Main(string[] args) { Options options = new Options(); options.Parse(args); try { return new Runner(options).Run(null); } catch (ProjectNotFoundException ex) { Console.WriteLine(ex.Message); return 2; } catch (Exception ex) { Console.WriteLine(ex.ToString()); return 1; } }
private void OpenAssemblyOrBuildFile(string filename) { tbAssembly.Text = filename; _options = new Options(); _options.Parse(new string[] { filename }); CreateRunner(); }
private void MainForm_Shown(object sender, EventArgs e) { if (_args.Length > 0) { _options = new Options(); _options.Parse(_args); tbAssembly.Text = _options.BuildFile ?? _options.DllFilename; CreateRunner(); } }