Skip to content

Commit 8011b77

Browse files
Copilotcaptainsafia
andcommitted
Add CreateNoWindow=true to ProcessUtil.Run to fix flashing console windows on Windows
Co-authored-by: captainsafia <1857993+captainsafia@users.noreply.github.com>
1 parent d4c588b commit 8011b77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Aspire.Hosting/Dcp/Process/ProcessUtil.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public static (Task<ProcessResult>, IAsyncDisposable) Run(ProcessSpec processSpe
2929
RedirectStandardOutput = true,
3030
RedirectStandardError = true,
3131
UseShellExecute = false,
32+
CreateNoWindow = true,
3233
WindowStyle = ProcessWindowStyle.Hidden,
3334
},
3435
EnableRaisingEvents = true

0 commit comments

Comments
 (0)