We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd76a17 commit 32f0754Copy full SHA for 32f0754
1 file changed
WebKitDev/Functions/Install-VSBuildTools2022.ps1
@@ -21,22 +21,18 @@ function Install-VSBuildTools2022 {
21
[string]$installationPath
22
)
23
24
- $url = 'https://aka.ms/vs/17/release/vs_BuildTools.exe';
25
-
26
- $options = @(
27
- '--quiet',
28
- '--norestart',
29
- '--nocache',
30
- '--wait'
31
- );
+ $packageParameters = @();
32
33
foreach ($workload in $workloads) {
34
- $options += @('--add',$workload);
+ $packageParameters += @('--add',$workload);
35
}
36
37
if ($installationPath) {
38
- $options += @('--installPath',$installationPath);
+ $packageParameters += @('--installPath',$installationPath);
39
40
41
- Install-FromExe -Name 'VSBuildTools2022' -url $url -Options $options -noVerify;
+ Install-FromChoco `
+ -Name visualstudio2022buildtools `
+ -PackageParameters $packageParameters `
+ -noVerify;
42
0 commit comments