Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 17, 2025

Add Visual Studio 2026 support to InstallVisualStudio.ps1

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Enable VS 2026 installation via build-from-source script

Description

The InstallVisualStudio.ps1 script only supported VS 2022. This adds VS 2026 support following the existing pattern where VS 2022 maps to internal version 17.

Script changes:

  • Added '2026' to Version parameter ValidateSet
  • Map VS 2026 → internal version 18
  • Updated path prefix logic to handle version 18
  • Updated parameter documentation

Response files:
Created six VS 2026 JSON configuration files (vs.18.*.json) mirroring the VS 2022 structure:

  • Release, Preview, and IntPreview channels for both full editions and BuildTools
  • Channel URIs point to https://aka.ms/vs/18/{channel}/channel
  • Channel IDs use VisualStudio.18.{Channel} format

No changes to existing VS 2022 functionality.

Fixes #64405

Original prompt

This section details on the original issue you should resolve

<issue_title>Build from source instructions need to be updated for VS 2026</issue_title>
<issue_description>Instructions here: https://github.com/dotnet/aspnetcore/blob/main/docs/BuildFromSource.md

Specifically, the InstallVisualStudio.ps1 script needs to be updated to support 2026. It only allows VS 2022.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@dotnet-policy-service
Copy link
Contributor

Greetings human! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!

Copilot AI changed the title [WIP] Update build from source instructions for Visual Studio 2026 Add Visual Studio 2026 support to InstallVisualStudio.ps1 Nov 17, 2025
Copilot finished work on behalf of adityamandaleeka November 17, 2025 23:03
@adityamandaleeka
Copy link
Member

@copilot the internal number for VS2026 is 18, not 19.

Copy link
Contributor Author

Copilot AI commented Nov 17, 2025

@copilot the internal number for VS2026 is 18, not 19.

Corrected to version 18. Updated the version mapping in InstallVisualStudio.ps1 and renamed all JSON files from vs.19.* to vs.18.* with updated channel URIs and IDs. Commit: 9c0c236

"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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did these numbers come from?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if it works locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build from source instructions need to be updated for VS 2026

3 participants