本人使用的是最新的ET6.0 Unity版本2019.3.0f6 Microsoft Visual Studio Enterprise 2019版本 16.4.4
方法1:
找到ProcessHelper.cs文件的Run方法,将
ProcessStartInfo info = new ProcessStartInfo
{
FileName = exe,
Arguments = arguments,
CreateNoWindow = true,
UseShellExecute = useShellExecute,
WorkingDirectory = workingDirectory,
RedirectStandardOutput = redirectStandardOutput,
RedirectStandardError = redirectStandardError,
};
其中FileName 赋值为 Path.GetFullPath(workingDirectory) + exe, 即:FileName =Path.GetFullPath(workingDirectory) + exe,
方法二:
找到ProcessHelper.cs文件的Run方法,将
ProcessStartInfo info = new ProcessStartInfo
{
FileName = exe,
Arguments = arguments,
CreateNoWindow = true,
UseShellExecute = useShellExecute,
WorkingDirectory = workingDirectory,
RedirectStandardOutput = redirectStandardOutput,
RedirectStandardError = redirectStandardError,
};
其中WorkingDirectory 赋值为 Path.GetFullPath(workingDirectory), 即:WorkingDirectory = Path.GetFullPath(workingDirectory)