Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

Backports #51558 to release/8.0.3xx.

VS Release rejects preview SDKs by default via a local AppData setting, causing MSBuild SDK resolver failures during Helix test runs.

Changes

  • eng/enable-preview-sdks.ps1 (new): Locates VS installation and sets UsePreviews=True in the instance-specific sdk.txt file
  • build/RunTestsOnHelix.cmd: Invokes enable-preview-sdks.ps1 before test execution
  • eng/common/tools.ps1: Handles null vsRequirements in LocateVisualStudio() when global.json lacks tools.vs key

Context

MSBuild respects VS settings when resolving SDKs. Without this fix, internal preview SDKs fail to resolve in test environments using VS Release installations.


Co-authored-by: nagilson 23152278+nagilson@users.noreply.github.com

Original prompt

This section details on the original issue you should resolve

<issue_title>backport VS Release fix to 8.0.3xx</issue_title>
<issue_description>Please start a PR to backport https://github.com/dotnet/sdk/pull/51558/checks?check_run_id=54843914657 to 8.0.3xx.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI self-assigned this Nov 7, 2025
…rements

Co-authored-by: nagilson <23152278+nagilson@users.noreply.github.com>
Copilot AI changed the title [WIP] Backport VS release fix to 8.0.3xx Backport: Fix VS Release rejecting preview SDKs on Helix test machines Nov 7, 2025
Copilot AI requested a review from nagilson November 7, 2025 23:22
Copilot finished work on behalf of nagilson November 7, 2025 23:22
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.

2 participants