Skip to content

Enable tools.ps1 find VS logic to work even if VS is not in global.json#16401

Merged
nagilson merged 2 commits intorelease/9.0from
marcpopMSFT-patch-1
Dec 11, 2025
Merged

Enable tools.ps1 find VS logic to work even if VS is not in global.json#16401
nagilson merged 2 commits intorelease/9.0from
marcpopMSFT-patch-1

Conversation

@nagilson
Copy link
Member

@nagilson nagilson commented Dec 11, 2025

q.t. from @marcpopMSFT in #16313

Because 17.14 went stable, we needed a way to run vswhere, find the VS node, and enable preview SDKs. @nagilson found a way to do this but he had to modify tools.ps1 because the SDK repo didn't have a VS node in our global.json

https://github.com/dotnet/sdk/pull/51558/files#diff-72b8f8e899b94872c6ead31fd06ec109da15bcb9ad2af6e78103d6763a31c637

Porting his change here to see if folks want this centrally. Alternatively, I'm trying adding the vs node to global.json to see if it unblocks us.

We discussed this in #16313 and had decided to close it. But really, this is a small bug fix into the script because it enables finding VS without needing a global.json node. The Arcade wide machine fix didn't seem to work. But regardless of that, we think this subset, which enables the broader change in dotnet/sdk#51558, should be done to improve the code.

Because 17.14 went stable, we needed a way to run vswhere, find the VS node, and enable preview SDKs. Noah found a way to do this but he had to modify tools.ps1 because the SDK repo didn't have a VS node in our global.json

https://github.com/dotnet/sdk/pull/51558/files#diff-72b8f8e899b94872c6ead31fd06ec109da15bcb9ad2af6e78103d6763a31c637

Porting his change here to see if folks want this centrally. Alternatively, I'm trying adding the vs node to global.json to see if it unblocks us.
@nagilson nagilson changed the title Refactor vsRequirements assignment logic in tools.ps1 Enable tools.ps1 find VS logic to work even if VS is not in global.json Dec 11, 2025
Copy link
Member

@missymessa missymessa left a comment

Choose a reason for hiding this comment

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

LGTM shipit

@nagilson nagilson enabled auto-merge December 11, 2025 18:49
@nagilson
Copy link
Member Author

Thanks! Are we in a state where we can deploy this right now to both branches or are they closed?

@nagilson nagilson merged commit e9983e5 into release/9.0 Dec 11, 2025
9 of 10 checks passed
@nagilson nagilson deleted the marcpopMSFT-patch-1 branch December 11, 2025 21:12
@akoeplinger
Copy link
Member

@nagilson would you mind porting this to main and release/10.0 as well? arcade doesn't have inter-branch merging.

@nagilson
Copy link
Member Author

@copilot Can you please port this to main and release/10.0?

@nagilson
Copy link
Member Author

/backport to release/10.0

@nagilson
Copy link
Member Author

/backport to main

@github-actions
Copy link
Contributor

Started backporting to release/10.0 (link to workflow run)

@github-actions
Copy link
Contributor

Started backporting to main (link to workflow run)

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