Skip to content

GH4658: Add support for MSBuild 18 and VS2026.#4659

Merged
devlead merged 1 commit intocake-build:developfrom
peymanr34:feature/msbuild-18
Dec 5, 2025
Merged

GH4658: Add support for MSBuild 18 and VS2026.#4659
devlead merged 1 commit intocake-build:developfrom
peymanr34:feature/msbuild-18

Conversation

@peymanr34
Copy link
Copy Markdown
Contributor

As discussed here, there are some differences between VS2022 and VS2026:

  • Visual Studio 2026 Insiders is located at:
    • C:\Program Files\Microsoft Visual Studio\18\Insiders\
  • MSBuild 18 and Build Tools are located at:
    • C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Current\Bin\amd64\MSBuild.exe
    • C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\MSBuild\Current\Bin\amd64\MSBuild.exe

Notes:

  • The internal VisualStudio.GetYearAndEditionRootPath method can be renamed to avoid confusion.
  • The internal VisualStudio.Editions.Preview can be split between VS2022 and VS2026 but it feels unnecessary.
  • Fixes: Add support for MSBuild 18 and VS2026 #4658

This PR is loosely based on: #3465

@peymanr34
Copy link
Copy Markdown
Contributor Author

Should this PR also include adding "18" to VisualStudio.Versions.TwentySeventeenAndLater used by the following methods? or is it out of scope?

  • MSTestRunner.GetAlternativeToolPaths
  • VSTestRunner.GetAlternativeToolPaths

Adding it seems fine and doesn't require changes to the test runners since they're using VisualStudio.GetYearAndEditionToolPath method under the hood.

@lennoncork
Copy link
Copy Markdown

This looks good, would be great to get this merged and released.

@andreas-eriksson
Copy link
Copy Markdown

I agree. Would be nice to be able to update builders to the new BuildTools.

Copy link
Copy Markdown
Member

@devlead devlead left a comment

Choose a reason for hiding this comment

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

LGMT 👍

@devlead devlead merged commit 3531435 into cake-build:develop Dec 5, 2025
16 checks passed
@devlead
Copy link
Copy Markdown
Member

devlead commented Dec 5, 2025

@peymanr34 your changes have been merged, thanks for your contribution 👍

@peymanr34
Copy link
Copy Markdown
Contributor Author

@devlead Thanks very much.

@lennoncork
Copy link
Copy Markdown

Just checking in, is there any chance we could get a release with this change? Is there anything I can do to help test/validate?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for MSBuild 18 and VS2026

5 participants