public static ProcessToString ( Process process ) : string | ||
process | Process | |
return | string |
public static string ProcessToString(Process process)
{
string[] textArray1 = new string[] { process.StartInfo.FileName, " ", process.StartInfo.Arguments, " current dir : ", process.StartInfo.WorkingDirectory, "\n" };
return string.Concat(textArray1);
}
public static void RunMonoProcess(Process process, string name, string resultingFile) { MonoProcessRunner monoProcessRunner = new MonoProcessRunner(); bool flag = monoProcessRunner.Run(process); if (process.ExitCode != 0 || !File.Exists(resultingFile)) { string message = "Failed " + name + ": " + MonoProcessUtility.ProcessToString(process) + " result file exists: " + (object)File.Exists(resultingFile) + ". Timed out: " + (object)!flag + "\n\n" + "stdout:\n" + (object)monoProcessRunner.Output + "\n" + "stderr:\n" + (object)monoProcessRunner.Error + "\n"; Console.WriteLine(message); throw new UnityException(message); } }