Sfoglia il codice sorgente

Use `--norestart` VS installer argument conditionally (#25425)

- aspnet/AspNetCore-ManualTests#175
- now compatible only with `--passive` and `--quiet`
Doug Bunting 5 anni fa
parent
commit
21668d2c16
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      eng/scripts/InstallVisualStudio.ps1

+ 3 - 4
eng/scripts/InstallVisualStudio.ps1

@@ -111,14 +111,13 @@ if (Test-path $InstallPath) {
 $arguments += `
     '--productId', $productId, `
     '--installPath', "`"$InstallPath`"", `
-    '--in', "`"$responseFile`"", `
-    '--norestart'
+    '--in', "`"$responseFile`""
 
 if ($Passive) {
-    $arguments += '--passive'
+    $arguments += '--passive', '--norestart'
 }
 if ($Quiet) {
-    $arguments += '--quiet', '--wait'
+    $arguments += '--quiet', '--wait', '--norestart'
 }
 
 Write-Host