public static void Main(string[] args) { XmlConfigurator.Configure(); var program = new RunCsJobProgram(); if (args.Any(x => x.StartsWith("-p:"))) { var path = args.FirstOrDefault(x => x.StartsWith("-p:"))?.Substring(3); if (path != null) program.Settings.MsBuildSettings.CompilerDirectory = new DirectoryInfo(path); } if (args.Contains("--selfcheck")) program.SelfCheck(); else program.Run(); }
public static void Main(string[] args) { XmlConfigurator.Configure(); var program = new RunCsJobProgram(); if (args.Any(x => x.StartsWith("-p:"))) { var path = args.FirstOrDefault(x => x.StartsWith("-p:"))?.Substring(3); if (path != null) { program.Settings.MsBuildSettings.CompilerDirectory = new DirectoryInfo(path); } } if (args.Contains("--selfcheck")) { program.SelfCheck(); } else { program.Run(); } }