public ToolExecutionOptions(string executablePath, params string[] arguments)
{
this.StartInfo = new ProcessStartInfo(executablePath)
{
Arguments = ConcatArguments(arguments),
UseShellExecute = false,
WorkingDirectory = Path.GetFullPath("./"),
EnvironmentVariables =
{
{ "UNITY_PROJECT_PATH", Path.GetFullPath("./").TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar) }
},
CreateNoWindow = true
};
this.WaitForExit = true;
this.TerminationTimeout = TimeSpan.FromSeconds(5);
}