We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bb66a commit 842058bCopy full SHA for 842058b
src/powershell-native/nativemsh/pwrshplugin/pwrshclrhost.cpp
@@ -39,6 +39,13 @@ unsigned int PowerShellCoreClrWorker::LaunchClr(
39
{
40
// Allocate a console so that the codepage is setup correctly
41
AllocConsole();
42
+ HWND console = GetConsoleWindow();
43
+ if (console != NULL)
44
+ {
45
+ // Hide the console window
46
+ ShowWindow(console, SW_HIDE);
47
+ }
48
+
49
return commonLib->LaunchCoreCLR(hostWrapper, hostEnvironment, friendlyName);
50
}
51
0 commit comments