microsoft / microsoft/WSL

Update cmake scripts to support Visual Studio 2026 and preview builds of VS

Open
#14,159 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

Is your feature request related to a problem? Please describe.
Unable to build the .slnx file with VS2026 as the script CMakeLists.txt checks for versions prior to 18.0 (i.e, < VS 2026) and doesn't have the -prelease flag so insiders builds of VS won't be found.

Describe the solution you'd like
Update the script to set the exclusive max version as 19.0 and add --prerelease to the script.

Describe alternatives you've considered
Installing VS2022.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository for CMakeLists.txt and inspect the Visual Studio version check and the command that discovers Visual Studio installations. Update the exclusive maximum version for VS 2026 and include the prerelease option, then verify that the generated .slnx build can find supported stable and preview Visual Studio versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Feature
Difficulty
1/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.