2021-04-26 10:27:45 -07:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2024-07-03 20:01:35 -07:00
|
|
|
param([string]$SasToken)
|
2021-04-26 10:27:45 -07:00
|
|
|
|
2024-07-03 20:01:35 -07:00
|
|
|
if (Test-Path "$PSScriptRoot/utility-prefix.ps1") {
|
|
|
|
. "$PSScriptRoot/utility-prefix.ps1"
|
|
|
|
}
|
2021-04-26 10:27:45 -07:00
|
|
|
|
2024-12-21 03:48:36 -08:00
|
|
|
# See https://learn.microsoft.com/visualstudio/releases/2022/release-history
|
|
|
|
# 17.12.3
|
|
|
|
$VisualStudioBootstrapperUrl = 'https://download.visualstudio.microsoft.com/download/pr/f2819554-a618-400d-bced-774bb5379965/6dec611eac2a146142b25497888f6b518069eeeb9f5ac32ce29ad5bebd753a64/vs_Enterprise.exe'
|
2021-04-26 10:27:45 -07:00
|
|
|
$Workloads = @(
|
|
|
|
'Microsoft.VisualStudio.Workload.NativeDesktop',
|
|
|
|
'Microsoft.VisualStudio.Workload.Universal',
|
2023-09-15 15:01:12 -07:00
|
|
|
'Microsoft.VisualStudio.Component.UWP.VC.ARM64',
|
2021-04-26 10:27:45 -07:00
|
|
|
'Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.Tools.ARM64',
|
2023-08-14 13:58:43 -07:00
|
|
|
'Microsoft.VisualStudio.Component.VC.ASAN',
|
2021-04-26 10:27:45 -07:00
|
|
|
'Microsoft.VisualStudio.Component.VC.ATL',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.ATLMFC',
|
2022-04-15 15:33:07 -07:00
|
|
|
'Microsoft.VisualStudio.Component.VC.ATL.ARM64',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.MFC.ARM64',
|
2024-11-19 14:42:29 -08:00
|
|
|
'Microsoft.VisualStudio.Component.Windows11SDK.26100',
|
|
|
|
'Microsoft.VisualStudio.Component.Windows10SDK.20348', # As of 2024-11-15, CMake explicitly needs a Windows 10 SDK for Store
|
|
|
|
# These .NET parts are needed for easyhook, openni2
|
2021-04-26 10:27:45 -07:00
|
|
|
'Microsoft.Net.Component.4.8.SDK',
|
2021-09-11 13:43:19 -07:00
|
|
|
'Microsoft.Net.Component.4.7.2.TargetingPack',
|
2021-04-26 10:27:45 -07:00
|
|
|
'Microsoft.Component.NetFX.Native',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.Llvm.ClangToolset',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.Llvm.Clang',
|
2022-04-15 15:33:07 -07:00
|
|
|
'Microsoft.VisualStudio.ComponentGroup.UWP.VC.BuildTools',
|
|
|
|
'Microsoft.VisualStudio.Component.VC.CMake.Project'
|
2021-04-26 10:27:45 -07:00
|
|
|
)
|
|
|
|
|
2024-07-03 20:01:35 -07:00
|
|
|
$vsArgs = @('--quiet', '--norestart', '--wait', '--nocache')
|
|
|
|
foreach ($workload in $Workloads) {
|
|
|
|
$vsArgs += '--add'
|
|
|
|
$vsArgs += $workload
|
2021-04-26 10:27:45 -07:00
|
|
|
}
|
|
|
|
|
2024-07-03 20:01:35 -07:00
|
|
|
DownloadAndInstall -Name 'Visual Studio' -Url $VisualStudioBootstrapperUrl -Args $vsArgs
|