예제 #1
0
		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();
		}
예제 #2
0
        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();
            }
        }