Browse Source

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

Prevent blank command prompts from spawning when building a mono project
Rémi Verschelde 3 years ago
parent
commit
947a1fa090

+ 1 - 0
modules/mono/editor/GodotTools/GodotTools/Build/BuildSystem.cs

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

+ 2 - 1
modules/mono/editor/GodotTools/GodotTools/Utils/OS.cs

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