mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 00:06:57 +00:00
[windows 22 & 25 ] Upgrade visual studio to postGRO channel (#11595)
* [windows 22 and 25 Upgrade visual studio to postGRO * Add condition for windows 19 to skip * [Windows] Update Vs installation script * Refactor the visual studio installation script * Fix windows 19 faliure * Fix windows 19 visual studio failure * [windows] Fix Windows 19 failure * Add condition for windows 19 * [windows] Fix windows 19 failure * [windows] update script by changing the condition syntax * Make installchannel as optioanl parametr * Update Installer script * [ windows ] Update the installation script with conditional statement * Update the installation script * Update toolsets * Update the channel ID * Update channel ID * Resolve conflicts * Resolve conflicts
This commit is contained in:
committed by
GitHub
parent
9b2b536f10
commit
b5421c9536
@@ -2,17 +2,30 @@
|
||||
## File: Install-VisualStudio.ps1
|
||||
## Desc: Install Visual Studio
|
||||
################################################################################
|
||||
|
||||
$vsToolset = (Get-ToolsetContent).visualStudio
|
||||
|
||||
# Install VS
|
||||
Install-VisualStudio `
|
||||
-Version $vsToolset.subversion `
|
||||
-Edition $vsToolset.edition `
|
||||
-Channel $vsToolset.channel `
|
||||
-RequiredComponents $vsToolset.workloads `
|
||||
-ExtraArgs "--allWorkloads --includeRecommended --remove Component.CPython3.x64" `
|
||||
-SignatureThumbprint $vsToolset.signature
|
||||
if (Test-IsWin19) {
|
||||
# Install Visual Studio for Windows 19
|
||||
Install-VisualStudio `
|
||||
-Version $vsToolset.subversion `
|
||||
-Edition $vsToolset.edition `
|
||||
-Channel $vsToolset.channel `
|
||||
-RequiredComponents $vsToolset.workloads `
|
||||
-ExtraArgs "--allWorkloads --includeRecommended --remove Component.CPython3.x64" `
|
||||
-SignatureThumbprint $vsToolset.signature
|
||||
}
|
||||
|
||||
if ( (Test-IsWin22) -or (Test-IsWin25) ) {
|
||||
# Install Visual Studio for Windows 22 and 25 with InstallChannel
|
||||
Install-VisualStudio `
|
||||
-Version $vsToolset.subversion `
|
||||
-Edition $vsToolset.edition `
|
||||
-Channel $vsToolset.channel `
|
||||
-InstallChannel $vsToolset.installChannel `
|
||||
-RequiredComponents $vsToolset.workloads `
|
||||
-ExtraArgs "--allWorkloads --includeRecommended --remove Component.CPython3.x64" `
|
||||
-SignatureThumbprint $vsToolset.signature
|
||||
}
|
||||
|
||||
# Find the version of VS installed for this instance
|
||||
# Only supports a single instance
|
||||
|
||||
Reference in New Issue
Block a user