Skip to content

NETCoreSdkResolver should give a clear error message when preview SDK is rejected due to UsePreviews=false #10213

@KirillOsenkov

Description

@KirillOsenkov

Currently the experience we see when a preview SDK is rejected due to DisallowPrerelease()
https://github.com/dotnet/cli/blob/bfffcb23ba270640b355e729f36b34c04fad0121/src/Microsoft.DotNet.MSBuildSdkResolver/VSSettings.cs#L75

is not good. It's a generic failed to load .NET SDK error, and it's super hard to figure out that the SDK was actually found, but it was pre-release and the checkbox wasn't set.

See related:
dotnet/roslyn#34927

If I wasted four hours figuring this out and debugging through the SDK resolver, the UX here should really be improved.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions