Skip to content

Conversation

@iikuzmychov
Copy link

Adds support for the Visual Studio 18 2026 CMake generator in eng/native/gen-buildsys.cmd.

  • Handles %_VSVersion% == "18.0" similarly to the existing Visual Studio 2022 case.
  • Does not change behavior for other Visual Studio versions.

Testing:

  • Verified that gen-buildsys.cmd selects the Visual Studio 18 2026 generator when %_VSVersion% is 18.0.

Copilot AI review requested due to automatic review settings November 21, 2025 21:55
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 21, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Nov 21, 2025
Copilot finished reviewing on behalf of iikuzmychov November 21, 2025 21:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for the Visual Studio 2026 CMake generator in the native build system configuration script. The change enables the build system to recognize and use Visual Studio 18 (2026) when generating build files.

  • Adds a conditional check for VS version 18.0 to set the CMake generator to "Visual Studio 18 2026"
  • Follows the existing pattern established for VS 2022 (version 17.0)
  • Placed appropriately before the VS 2022 check to handle newer versions first

@iikuzmychov iikuzmychov changed the title Add Visual Studio 2026 CMake generator support for gen-buildsys.cmd Add support for Visual Studio 2026 CMake generator for gen-buildsys.cmd Nov 21, 2025
@vcsjones vcsjones added area-Infrastructure and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 21, 2025
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

@jkotas jkotas changed the title Add support for Visual Studio 2026 CMake generator for gen-buildsys.cmd [release/10.0] Add support for Visual Studio 2026 CMake generator for gen-buildsys.cmd Nov 22, 2025
@jkotas
Copy link
Member

jkotas commented Nov 22, 2025

This was fixed in main by #120580 . I see you have submitted your change against release/10.0 branch. We require justification for all backport to release branches.

Could you share why you would like to see this change backported to release/10.0?

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

Labels

area-Infrastructure community-contribution Indicates that the PR has been added by a community member

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

3 participants