Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid "missing toolset" error in design-time builds #42360

Merged

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Jul 25, 2024

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2172605
Part of #41791.

Summary

A new error trying to detect builds run with a split SDK/compiler inadvertently triggered when projects are opened in some cases, blocking NuGet restore and build in VS scenarios.

Customer Impact

Opening a .NET SDK project in Visual Studio can fail to restore packages and load the project with NETSDK1216.

Regression?

Yes, introduced in 2a0c0f0.

Testing

Manual execution of scenario.

Risk

Low--avoids executing a new target that provides error information about a failed-to-restore state in cases where it shouldn't run. The target never existed before so it definitely didn't run in design-time builds then.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Jul 25, 2024
@jjonescz jjonescz marked this pull request as ready for review July 25, 2024 10:34
@jjonescz jjonescz merged commit 3c35b9b into dotnet:release/9.0.1xx-preview7 Jul 26, 2024
31 checks passed
@jjonescz jjonescz deleted the tearing-error-designtime branch July 26, 2024 07:15
@baronfel
Copy link
Member

/backport to main

Copy link
Contributor

Started backporting to main: https://github.com/dotnet/sdk/actions/runs/10112336347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants