diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-01-08 07:23:13 +0400 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2014-01-08 07:23:13 +0400 |
commit | 91ed5dfbfc34059f42bc7f37cba8d307ccc3873e (patch) | |
tree | b594d8c63bebbff7c55ef02d6f2900625c1720f0 /mcs/class | |
parent | 6bb2ab2f067c95f5cbc38b9d2b4382c0ae595e03 (diff) |
[xbuild] Suppress new window for child processes
BXC14584 - Console windows pop up during build with mono runtime
Diffstat (limited to 'mcs/class')
-rw-r--r-- | mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ProcessService.cs | 1 | ||||
-rw-r--r-- | mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ProcessService.cs b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ProcessService.cs index 3de49797724..d022ea16c01 100644 --- a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ProcessService.cs +++ b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ProcessService.cs @@ -117,6 +117,7 @@ namespace Microsoft.Build.Utilities startInfo.RedirectStandardError = true; startInfo.RedirectStandardInput = redirectStandardInput; startInfo.UseShellExecute = false; + startInfo.CreateNoWindow = true; return startInfo; } diff --git a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs index 77814aab862..01a7c453aec 100644 --- a/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs +++ b/mcs/class/Microsoft.Build.Utilities/Microsoft.Build.Utilities/ToolTask.cs @@ -298,6 +298,7 @@ namespace Microsoft.Build.Utilities pinfo.WorkingDirectory = GetWorkingDirectory () ?? Environment.CurrentDirectory; pinfo.UseShellExecute = false; + pinfo.CreateNoWindow = true; pinfo.RedirectStandardOutput = true; pinfo.RedirectStandardError = true; |