Skip to content

Commit 084c783

Browse files
5an7yCopilot
andcommitted
fix: use Write-Host for VS selection menu so it displays to console
Write-Output goes to stdout and gets captured by the pipeline, making the menu invisible. Write-Host writes directly to the console, ensuring users see the numbered options. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1a672e3 commit 084c783

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

BuildEnvironment.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ function Select-VsInstallation {
5252
}
5353

5454
# Multiple installations — let the user choose
55-
Write-Output ""
56-
Write-Output "The following Visual Studio installations were found with the required WDK media:"
55+
Write-Host ""
56+
Write-Host "The following Visual Studio installations were found with the required WDK media:"
5757
for ($i = 0; $i -lt $Installations.Count; $i++) {
58-
Write-Output " [$($i + 1)] $($Installations[$i].DisplayName)$($Installations[$i].InstallationPath)"
58+
Write-Host " [$($i + 1)] $($Installations[$i].DisplayName)$($Installations[$i].InstallationPath)"
5959
}
60-
Write-Output ""
60+
Write-Host ""
6161

6262
do {
6363
$choice = Read-Host "Select the installation to use [1-$($Installations.Count)]"

0 commit comments

Comments
 (0)