mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 11:21:12 +08:00
42 lines
1.7 KiB
PowerShell
42 lines
1.7 KiB
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
param([string]$SasToken)
|
|
|
|
if (Test-Path "$PSScriptRoot/utility-prefix.ps1") {
|
|
. "$PSScriptRoot/utility-prefix.ps1"
|
|
}
|
|
|
|
# See https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history
|
|
# 17.8.12
|
|
$VisualStudioBootstrapperUrl = 'https://download.visualstudio.microsoft.com/download/pr/a762cfe2-a734-454f-b7ed-26b22a4ea98d/d5e65f8ed2070bd56a564f88ce1f67eec82347170d4176b5d94c5713cbd4b9a5/vs_Enterprise.exe'
|
|
$Workloads = @(
|
|
'Microsoft.VisualStudio.Workload.NativeDesktop',
|
|
'Microsoft.VisualStudio.Workload.Universal',
|
|
'Microsoft.VisualStudio.Component.UWP.VC.ARM64',
|
|
'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
|
'Microsoft.VisualStudio.Component.VC.Tools.ARM64',
|
|
'Microsoft.VisualStudio.Component.VC.ASAN',
|
|
'Microsoft.VisualStudio.Component.VC.ATL',
|
|
'Microsoft.VisualStudio.Component.VC.ATLMFC',
|
|
'Microsoft.VisualStudio.Component.VC.ATL.ARM64',
|
|
'Microsoft.VisualStudio.Component.VC.MFC.ARM64',
|
|
'Microsoft.VisualStudio.Component.Windows11SDK.22621',
|
|
'Microsoft.VisualStudio.Component.Windows10SDK.20348',
|
|
'Microsoft.Net.Component.4.8.SDK',
|
|
'Microsoft.Net.Component.4.7.2.TargetingPack',
|
|
'Microsoft.Component.NetFX.Native',
|
|
'Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset',
|
|
'Microsoft.VisualStudio.Component.VC.Llvm.Clang',
|
|
'Microsoft.VisualStudio.ComponentGroup.UWP.VC.BuildTools',
|
|
'Microsoft.VisualStudio.Component.VC.CMake.Project'
|
|
)
|
|
|
|
$vsArgs = @('--quiet', '--norestart', '--wait', '--nocache')
|
|
foreach ($workload in $Workloads) {
|
|
$vsArgs += '--add'
|
|
$vsArgs += $workload
|
|
}
|
|
|
|
DownloadAndInstall -Name 'Visual Studio' -Url $VisualStudioBootstrapperUrl -Args $vsArgs
|