Skip to content

[Feature Request]: Reduce the wrapping around SDK Resolver messages when only one resolver is actually invoked #10191

@baronfel

Description

@baronfel

Summary

In dotnet/sdk#41268 I was able to use the SDK Resolver features to ensure that only the NuGet SDK resolver was used for a restore. In this case we should be able to remove MSBuild wrapping around the 'error list' and only surface the single Resolver's message.

Background and Motivation

We want to remove visual noise around error experiences and make it easier for users to diagnose the core problems.

Proposed Feature

if (failOnUnresolvedSdk)
{
loggingContext.LogError(new BuildEventFileInfo(sdkReferenceLocation), "FailedToResolveSDK", sdk.Name, string.Join($"{Environment.NewLine} ", errors));
}
should change the way it logs to not log the wrapper if only one resolver was used.

Alternative Designs

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions