Merge pull request #60956 from macjuul/hide-mono-cmd-prompt

Prevent blank command prompts from spawning when building a mono project
This commit is contained in:
Rémi Verschelde 2022-05-12 21:23:00 +02:00 committed by GitHub
commit 947a1fa090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -63,6 +63,7 @@ namespace GodotTools.Build
startInfo.RedirectStandardOutput = true; startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true; startInfo.RedirectStandardError = true;
startInfo.UseShellExecute = false; startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
if (UsingMonoMsBuildOnWindows) if (UsingMonoMsBuildOnWindows)
{ {

View File

@ -184,7 +184,8 @@ namespace GodotTools.Utils
{ {
RedirectStandardOutput = true, RedirectStandardOutput = true,
RedirectStandardError = true, RedirectStandardError = true,
UseShellExecute = false UseShellExecute = false,
CreateNoWindow = true
}; };
using (Process process = Process.Start(startInfo)) using (Process process = Process.Start(startInfo))