From 3c139fe981c0c1b073ecfcf7b2a465f27f68cc0c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 22:48:11 +0000 Subject: [PATCH 1/3] Initial plan From c84b677a4e1e75785ac3537301f313c02bdb68ea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 22:55:24 +0000 Subject: [PATCH 2/3] Add VS 2026 support to InstallVisualStudio.ps1 Co-authored-by: adityamandaleeka <219224+adityamandaleeka@users.noreply.github.com> --- eng/scripts/InstallVisualStudio.ps1 | 8 +++-- eng/scripts/vs.19.buildtools.intpreview.json | 31 ++++++++++++++++++++ eng/scripts/vs.19.buildtools.json | 31 ++++++++++++++++++++ eng/scripts/vs.19.buildtools.preview.json | 31 ++++++++++++++++++++ eng/scripts/vs.19.intpreview.json | 26 ++++++++++++++++ eng/scripts/vs.19.json | 26 ++++++++++++++++ eng/scripts/vs.19.preview.json | 26 ++++++++++++++++ 7 files changed, 177 insertions(+), 2 deletions(-) create mode 100644 eng/scripts/vs.19.buildtools.intpreview.json create mode 100644 eng/scripts/vs.19.buildtools.json create mode 100644 eng/scripts/vs.19.buildtools.preview.json create mode 100644 eng/scripts/vs.19.intpreview.json create mode 100644 eng/scripts/vs.19.json create mode 100644 eng/scripts/vs.19.preview.json diff --git a/eng/scripts/InstallVisualStudio.ps1 b/eng/scripts/InstallVisualStudio.ps1 index 164e86a7918f..72f0bb8cdb76 100644 --- a/eng/scripts/InstallVisualStudio.ps1 +++ b/eng/scripts/InstallVisualStudio.ps1 @@ -16,6 +16,7 @@ .PARAMETER Version Selects which version of Visual Studio to install. Must be one of these values: 2022 + 2026 .PARAMETER InstallPath The location on disk where Visual Studio should be installed or updated. Default path is location of latest existing installation of the specified edition, if any. If that VS edition is not currently installed, default @@ -37,7 +38,7 @@ param( [string]$Edition = 'Community', [ValidateSet('Release', 'Preview', 'IntPreview', 'Dogfood')] [string]$Channel = 'Release', - [ValidateSet('2022')] + [ValidateSet('2022', '2026')] [string]$Version = '2022', [string]$InstallPath, [switch]$Passive, @@ -67,6 +68,9 @@ $ProgressPreference = 'SilentlyContinue' # Workaround PowerShell/PowerShell#2138 if ("$Version" -eq "2022") { $vsversion = 17; } +elseif ("$Version" -eq "2026") { + $vsversion = 19; +} $channelUri = "https://aka.ms/vs/$vsversion/release" $responseFileName = "vs.$vsversion" if ("$Edition" -eq "BuildTools") { @@ -107,7 +111,7 @@ if (-not $InstallPath) { } if (-not $InstallPath) { - if ($vsversion -eq "17") { + if (($vsversion -eq "17") -or ($vsversion -eq "19")) { $pathPrefix = "${env:ProgramFiles}"; } if ("$Channel" -eq "Preview") { diff --git a/eng/scripts/vs.19.buildtools.intpreview.json b/eng/scripts/vs.19.buildtools.intpreview.json new file mode 100644 index 000000000000..9a84bff8ea4f --- /dev/null +++ b/eng/scripts/vs.19.buildtools.intpreview.json @@ -0,0 +1,31 @@ +{ + "channelUri": "https://aka.ms/vs/19/intpreview/channel", + "channelId": "VisualStudio.19.IntPreview", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.FSharp.MSBuild", + "Microsoft.VisualStudio.Component.NuGet", + "Microsoft.VisualStudio.Component.NuGet.BuildTools", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools", + "Microsoft.VisualStudio.Workload.MSBuildTools", + "Microsoft.VisualStudio.Workload.NetCoreBuildTools", + "Microsoft.VisualStudio.Workload.VCTools", + "Microsoft.VisualStudio.Workload.VisualStudioExtensionBuildTools", + "Microsoft.VisualStudio.Workload.WebBuildTools" + ] +} diff --git a/eng/scripts/vs.19.buildtools.json b/eng/scripts/vs.19.buildtools.json new file mode 100644 index 000000000000..ab8304ef1398 --- /dev/null +++ b/eng/scripts/vs.19.buildtools.json @@ -0,0 +1,31 @@ +{ + "channelUri": "https://aka.ms/vs/19/release/channel", + "channelId": "VisualStudio.19.Release", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.FSharp.MSBuild", + "Microsoft.VisualStudio.Component.NuGet", + "Microsoft.VisualStudio.Component.NuGet.BuildTools", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools", + "Microsoft.VisualStudio.Workload.MSBuildTools", + "Microsoft.VisualStudio.Workload.NetCoreBuildTools", + "Microsoft.VisualStudio.Workload.VCTools", + "Microsoft.VisualStudio.Workload.VisualStudioExtensionBuildTools", + "Microsoft.VisualStudio.Workload.WebBuildTools" + ] +} diff --git a/eng/scripts/vs.19.buildtools.preview.json b/eng/scripts/vs.19.buildtools.preview.json new file mode 100644 index 000000000000..22c43693f4b8 --- /dev/null +++ b/eng/scripts/vs.19.buildtools.preview.json @@ -0,0 +1,31 @@ +{ + "channelUri": "https://aka.ms/vs/19/pre/channel", + "channelId": "VisualStudio.19.Preview", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.FSharp.MSBuild", + "Microsoft.VisualStudio.Component.NuGet", + "Microsoft.VisualStudio.Component.NuGet.BuildTools", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktopBuildTools", + "Microsoft.VisualStudio.Workload.MSBuildTools", + "Microsoft.VisualStudio.Workload.NetCoreBuildTools", + "Microsoft.VisualStudio.Workload.VCTools", + "Microsoft.VisualStudio.Workload.VisualStudioExtensionBuildTools", + "Microsoft.VisualStudio.Workload.WebBuildTools" + ] +} diff --git a/eng/scripts/vs.19.intpreview.json b/eng/scripts/vs.19.intpreview.json new file mode 100644 index 000000000000..5695abea388a --- /dev/null +++ b/eng/scripts/vs.19.intpreview.json @@ -0,0 +1,26 @@ +{ + "channelUri": "https://aka.ms/vs/19/intpreview/channel", + "channelId": "VisualStudio.19.IntPreview", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktop", + "Microsoft.VisualStudio.Workload.NativeDesktop", + "Microsoft.VisualStudio.Workload.NetWeb", + "Microsoft.VisualStudio.Workload.VisualStudioExtension" + ] +} diff --git a/eng/scripts/vs.19.json b/eng/scripts/vs.19.json new file mode 100644 index 000000000000..2f78a6b7e03e --- /dev/null +++ b/eng/scripts/vs.19.json @@ -0,0 +1,26 @@ +{ + "channelUri": "https://aka.ms/vs/19/release/channel", + "channelId": "VisualStudio.19.Release", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktop", + "Microsoft.VisualStudio.Workload.NativeDesktop", + "Microsoft.VisualStudio.Workload.NetWeb", + "Microsoft.VisualStudio.Workload.VisualStudioExtension" + ] +} diff --git a/eng/scripts/vs.19.preview.json b/eng/scripts/vs.19.preview.json new file mode 100644 index 000000000000..2aa35e1e870f --- /dev/null +++ b/eng/scripts/vs.19.preview.json @@ -0,0 +1,26 @@ +{ + "channelUri": "https://aka.ms/vs/19/pre/channel", + "channelId": "VisualStudio.19.Preview", + "includeRecommended": false, + "addProductLang": [ + "en-US" + ], + "add": [ + "Microsoft.Net.Component.4.6.2.TargetingPack", + "Microsoft.Net.Component.4.7.2.SDK", + "Microsoft.Net.Component.4.7.2.TargetingPack", + "Microsoft.VisualStudio.Component.VC.ATL", + "Microsoft.VisualStudio.Component.VC.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.ARM64", + "Microsoft.VisualStudio.Component.VC.Tools.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.x86.x64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL.ARM64", + "Microsoft.VisualStudio.Component.VC.14.29.16.11.ATL", + "Microsoft.VisualStudio.Component.Windows10SDK.19041", + "Microsoft.VisualStudio.Workload.ManagedDesktop", + "Microsoft.VisualStudio.Workload.NativeDesktop", + "Microsoft.VisualStudio.Workload.NetWeb", + "Microsoft.VisualStudio.Workload.VisualStudioExtension" + ] +} From 9c0c23619eb98caf9458a54116dc5f523a34dae7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 17 Nov 2025 23:23:29 +0000 Subject: [PATCH 3/3] Fix VS 2026 internal version number to 18 Co-authored-by: adityamandaleeka <219224+adityamandaleeka@users.noreply.github.com> --- eng/scripts/InstallVisualStudio.ps1 | 4 ++-- ...tools.intpreview.json => vs.18.buildtools.intpreview.json} | 4 ++-- eng/scripts/{vs.19.buildtools.json => vs.18.buildtools.json} | 4 ++-- ....buildtools.preview.json => vs.18.buildtools.preview.json} | 4 ++-- eng/scripts/{vs.19.intpreview.json => vs.18.intpreview.json} | 4 ++-- eng/scripts/{vs.19.json => vs.18.json} | 4 ++-- eng/scripts/{vs.19.preview.json => vs.18.preview.json} | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) rename eng/scripts/{vs.19.buildtools.intpreview.json => vs.18.buildtools.intpreview.json} (92%) rename eng/scripts/{vs.19.buildtools.json => vs.18.buildtools.json} (92%) rename eng/scripts/{vs.19.buildtools.preview.json => vs.18.buildtools.preview.json} (93%) rename eng/scripts/{vs.19.intpreview.json => vs.18.intpreview.json} (90%) rename eng/scripts/{vs.19.json => vs.18.json} (91%) rename eng/scripts/{vs.19.preview.json => vs.18.preview.json} (91%) diff --git a/eng/scripts/InstallVisualStudio.ps1 b/eng/scripts/InstallVisualStudio.ps1 index 72f0bb8cdb76..e01433b85af2 100644 --- a/eng/scripts/InstallVisualStudio.ps1 +++ b/eng/scripts/InstallVisualStudio.ps1 @@ -69,7 +69,7 @@ if ("$Version" -eq "2022") { $vsversion = 17; } elseif ("$Version" -eq "2026") { - $vsversion = 19; + $vsversion = 18; } $channelUri = "https://aka.ms/vs/$vsversion/release" $responseFileName = "vs.$vsversion" @@ -111,7 +111,7 @@ if (-not $InstallPath) { } if (-not $InstallPath) { - if (($vsversion -eq "17") -or ($vsversion -eq "19")) { + if (($vsversion -eq "17") -or ($vsversion -eq "18")) { $pathPrefix = "${env:ProgramFiles}"; } if ("$Channel" -eq "Preview") { diff --git a/eng/scripts/vs.19.buildtools.intpreview.json b/eng/scripts/vs.18.buildtools.intpreview.json similarity index 92% rename from eng/scripts/vs.19.buildtools.intpreview.json rename to eng/scripts/vs.18.buildtools.intpreview.json index 9a84bff8ea4f..573c5a846d18 100644 --- a/eng/scripts/vs.19.buildtools.intpreview.json +++ b/eng/scripts/vs.18.buildtools.intpreview.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/intpreview/channel", - "channelId": "VisualStudio.19.IntPreview", + "channelUri": "https://aka.ms/vs/18/intpreview/channel", + "channelId": "VisualStudio.18.IntPreview", "includeRecommended": false, "addProductLang": [ "en-US" diff --git a/eng/scripts/vs.19.buildtools.json b/eng/scripts/vs.18.buildtools.json similarity index 92% rename from eng/scripts/vs.19.buildtools.json rename to eng/scripts/vs.18.buildtools.json index ab8304ef1398..6becff52f763 100644 --- a/eng/scripts/vs.19.buildtools.json +++ b/eng/scripts/vs.18.buildtools.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/release/channel", - "channelId": "VisualStudio.19.Release", + "channelUri": "https://aka.ms/vs/18/release/channel", + "channelId": "VisualStudio.18.Release", "includeRecommended": false, "addProductLang": [ "en-US" diff --git a/eng/scripts/vs.19.buildtools.preview.json b/eng/scripts/vs.18.buildtools.preview.json similarity index 93% rename from eng/scripts/vs.19.buildtools.preview.json rename to eng/scripts/vs.18.buildtools.preview.json index 22c43693f4b8..d2337152859a 100644 --- a/eng/scripts/vs.19.buildtools.preview.json +++ b/eng/scripts/vs.18.buildtools.preview.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/pre/channel", - "channelId": "VisualStudio.19.Preview", + "channelUri": "https://aka.ms/vs/18/pre/channel", + "channelId": "VisualStudio.18.Preview", "includeRecommended": false, "addProductLang": [ "en-US" diff --git a/eng/scripts/vs.19.intpreview.json b/eng/scripts/vs.18.intpreview.json similarity index 90% rename from eng/scripts/vs.19.intpreview.json rename to eng/scripts/vs.18.intpreview.json index 5695abea388a..ac502656d308 100644 --- a/eng/scripts/vs.19.intpreview.json +++ b/eng/scripts/vs.18.intpreview.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/intpreview/channel", - "channelId": "VisualStudio.19.IntPreview", + "channelUri": "https://aka.ms/vs/18/intpreview/channel", + "channelId": "VisualStudio.18.IntPreview", "includeRecommended": false, "addProductLang": [ "en-US" diff --git a/eng/scripts/vs.19.json b/eng/scripts/vs.18.json similarity index 91% rename from eng/scripts/vs.19.json rename to eng/scripts/vs.18.json index 2f78a6b7e03e..3a9a6b1f0196 100644 --- a/eng/scripts/vs.19.json +++ b/eng/scripts/vs.18.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/release/channel", - "channelId": "VisualStudio.19.Release", + "channelUri": "https://aka.ms/vs/18/release/channel", + "channelId": "VisualStudio.18.Release", "includeRecommended": false, "addProductLang": [ "en-US" diff --git a/eng/scripts/vs.19.preview.json b/eng/scripts/vs.18.preview.json similarity index 91% rename from eng/scripts/vs.19.preview.json rename to eng/scripts/vs.18.preview.json index 2aa35e1e870f..7d2f4513819b 100644 --- a/eng/scripts/vs.19.preview.json +++ b/eng/scripts/vs.18.preview.json @@ -1,6 +1,6 @@ { - "channelUri": "https://aka.ms/vs/19/pre/channel", - "channelId": "VisualStudio.19.Preview", + "channelUri": "https://aka.ms/vs/18/pre/channel", + "channelId": "VisualStudio.18.Preview", "includeRecommended": false, "addProductLang": [ "en-US"