Skip to content

Conversation

@andysterland
Copy link
Member

Description

Adding 18 to the valid set of VS version numbers. No new tests were added, consistent with the change to add 17. In general it looks like the tasks relies on distinguishing being between versions of VS < 16 or later, with the logic for >= 16 versions being the same - and the behavior for 18.0 is the same

Issue


Package Name

msbuildhelpers


Risk Assessment (Low / Medium / High)

Low

Unit Tests Added or Updated

  • [ x] Manual tests performed

Additional Testing Performed


Documentation Changes Required (Yes / No)

No

Dependencies

None

Checklist


Added 18 as a valid version, which it is for VS2026 though it's currently prerelease so won't show up unless the call to `vswhere` includes the `-prerelease` argument.
@ToreDemant
Copy link

Should this fallback solution also be extended with 2026?

const msbuild2022Path = 'C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/msbuild.exe';

@andysterland
Copy link
Member Author

Should this fallback solution also be extended with 2026?

const msbuild2022Path = 'C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/msbuild.exe';

Good catch, thanks. I've updated the file. For VS2026 the file path is /18/ rather than 2026. Still using the Enterprise SKU and the stable/release channel in the fallback. Not sure if it's important but the fallback could be updated to check the other two SKUs (Pro and Community), an issue for a later day.

@andysterland andysterland marked this pull request as ready for review November 11, 2025 15:28
@andysterland
Copy link
Member Author

@jmyersmsft could you re-review the changes? The PR needed a merge from main before it can merge. Thanks!

@ToreDemant
Copy link

@andysterland / @jmyersmsft / @tarunramsinghani can something be done to get this PR through?

@tarunramsinghani
Copy link
Collaborator

This is being worked upon in https://github.com/microsoft/azure-pipelines-tasks-common-packages/pull/510/files. Will close this in favor of above PR. Thanks.

@ToreDemant
Copy link

Thank you for the quick reply @tarunramsinghani

Glad that is is being worked on!

@andysterland
Copy link
Member Author

Closing this as it's superseded by #510

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.

4 participants