Browse Source

Fix blank command prompts spawning

prevent certain mono actions from displaying empty command prompts.

(cherry picked from commit d606a8ededaa9cf8edfa09b4aeaeb92167a48207)
Julian Mills 3 năm trước cách đây
mục cha
commit
99e509a5d2

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

@@ -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)
             {
             {

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

@@ -174,7 +174,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))