dotnet/msbuild

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

オープン

#10,191 opened on 2024/05/30

 (4 件のコメント) (1 件のリアクション) (0 人の担当者)C# (1,364 件のフォーク)batch import
Area: LoggingArea: ResolversFeature RequestGood First IssuePriority:2internal-team-onboardingtriaged

Repository metrics

Stars
 (5,062 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Summary

In https://github.com/dotnet/sdk/pull/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

https://github.com/dotnet/msbuild/blob/003252215533cca375dfc6578d8cb9e029418f37/src/Build/BackEnd/Components/SdkResolution/SdkResolverService.cs#L277-L280 should change the way it logs to not log the wrapper if only one resolver was used.

Alternative Designs

No response

コントリビューターガイド