Skip to content

Conversation

@zivkan
Copy link
Member

@zivkan zivkan commented Dec 1, 2025

Bug

Fixes: NuGet/Home#14664

Description

Fix dotnet nuget why's output, by porting the custom colour output logger to Spectre.Console.

This PR depends on the following two PRs being merged into .NET:

If they're not merged, then I just need to download the package version in this PR, but the test package has additional dependencies, so it will require additional package source mappings.

There's a very minor output difference, our custom outputter was putting an "empty line" between the TFM and the first package, whereas Spectre.Console doesn't.

Previous why implementation:
image

Spectre.Console (this PR):
image

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@zivkan zivkan requested a review from a team as a code owner December 1, 2025 09:07
@zivkan zivkan marked this pull request as draft December 2, 2025 10:49
@zivkan zivkan marked this pull request as ready for review December 3, 2025 05:38
@zivkan zivkan merged commit 8e2579a into dev Dec 4, 2025
17 of 18 checks passed
@zivkan zivkan deleted the dev-zivkan-why-spectre.console branch December 4, 2025 00:05
@Frulfump
Copy link

Frulfump commented Dec 4, 2025

What version will this be available in and in which version of the .NET 10 SDK? Could it be backported to 10.0.1xx?

@zivkan
Copy link
Member Author

zivkan commented Dec 12, 2025

It was backported. It should make it in the 10.0.102 SDK.

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.

dotnet nuget why is writing target package on new line instead of in package graph

6 participants