private static void RunUpdatingProgram(string executable, string arguments)
 {
   ManagedProgram program = new ManagedProgram(MonoInstallationFinder.GetMonoInstallation("MonoBleedingEdge"), "4.5", EditorApplication.applicationContentsPath + "/Tools/ScriptUpdater/" + executable, arguments);
   program.LogProcessStartInfo();
   program.Start();
   program.WaitForExit();
   Console.WriteLine(string.Join(Environment.NewLine, program.GetStandardOutput()));
   APIUpdaterHelper.HandleUpdaterReturnValue(program);
 }
 protected ManagedProgram StartCompiler(BuildTarget target, string compiler, List<string> arguments, bool setMonoEnvironmentVariables)
 {
   this.AddCustomResponseFileIfPresent(arguments, Path.GetFileNameWithoutExtension(compiler) + ".rsp");
   string responseFile = CommandLineFormatter.GenerateResponseFile((IEnumerable<string>) arguments);
   if (this.runUpdater)
     APIUpdaterHelper.UpdateScripts(responseFile, this._island.GetExtensionOfSourceFiles());
   ManagedProgram managedProgram = new ManagedProgram(MonoInstallationFinder.GetMonoInstallation(), this._island._classlib_profile, compiler, " @" + responseFile, setMonoEnvironmentVariables);
   managedProgram.Start();
   return managedProgram;
 }
 private static void HandleUpdaterReturnValue(ManagedProgram program)
 {
   if (program.ExitCode == 0)
   {
     APIUpdaterHelper.UpdateFilesInVCIfNeeded();
   }
   else
   {
     ScriptUpdatingManager.ReportExpectedUpdateFailure();
     if (program.ExitCode > 0)
       APIUpdaterHelper.ReportAPIUpdaterFailure((IEnumerable<string>) program.GetErrorOutput());
     else
       APIUpdaterHelper.ReportAPIUpdaterCrash((IEnumerable<string>) program.GetErrorOutput());
   }
 }
		private static void RunUpdatingProgram(string executable, string arguments)
		{
			string executable2 = EditorApplication.applicationContentsPath + "/Tools/ScriptUpdater/" + executable;
			ManagedProgram managedProgram = new ManagedProgram(MonoInstallationFinder.GetMonoInstallation("MonoBleedingEdge"), "4.5", executable2, arguments);
			managedProgram.LogProcessStartInfo();
			managedProgram.Start();
			managedProgram.WaitForExit();
			Console.WriteLine(string.Join(Environment.NewLine, managedProgram.GetStandardOutput()));
			if (managedProgram.ExitCode == 0)
			{
				APIUpdaterHelper.UpdateFilesInVCIfNeeded();
			}
			else
			{
				APIUpdaterHelper.ReportAPIUpdaterFailure(managedProgram.GetErrorOutput());
			}
		}