summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author5an7y <[email protected]>2026-04-03 13:06:55 -0700
committer5an7y <[email protected]>2026-04-03 13:06:55 -0700
commit084c783c5f4ae563520b4446e4b3eeae72b8d9e8 (patch)
tree85efd95fe3ed75d6e891b8f323dcb04ff50516a0
parent1a672e37d6773fa8324d358d0191f4e6fce19d47 (diff)
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 <[email protected]>
-rw-r--r--BuildEnvironment.ps18
1 files changed, 4 insertions, 4 deletions
diff --git a/BuildEnvironment.ps1 b/BuildEnvironment.ps1
index c4e3cffa..211b25a4 100644
--- a/BuildEnvironment.ps1
+++ b/BuildEnvironment.ps1
@@ -52,12 +52,12 @@ function Select-VsInstallation {
}
# Multiple installations — let the user choose
- Write-Output ""
- Write-Output "The following Visual Studio installations were found with the required WDK media:"
+ Write-Host ""
+ Write-Host "The following Visual Studio installations were found with the required WDK media:"
for ($i = 0; $i -lt $Installations.Count; $i++) {
- Write-Output " [$($i + 1)] $($Installations[$i].DisplayName) — $($Installations[$i].InstallationPath)"
+ Write-Host " [$($i + 1)] $($Installations[$i].DisplayName) — $($Installations[$i].InstallationPath)"
}
- Write-Output ""
+ Write-Host ""
do {
$choice = Read-Host "Select the installation to use [1-$($Installations.Count)]"