lazy initialize NuGet's instance of AnsiConsole#4139
Merged
zivkan merged 2 commits intodotnet:release/10.0.2xxfrom Jan 12, 2026
Merged
lazy initialize NuGet's instance of AnsiConsole#4139zivkan merged 2 commits intodotnet:release/10.0.2xxfrom
zivkan merged 2 commits intodotnet:release/10.0.2xxfrom
Conversation
MiYanni
approved these changes
Jan 9, 2026
|
Could we please link this to an issue? |
Member
|
Member
Author
|
I did a very basic manual test, and it looks to me like it fixed the issue. |
Member
Author
|
/backport to release/10.0.1xx |
Contributor
|
Started backporting to |
This was referenced Jan 19, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fixes: dotnet/sdk#52278
Apparently using Spectre.Console's
AnsiConsole.Consolesends VT control codes on initialize, not first API usage, and this is messing up some of the dotnet CLI's C++ output, likedotnet --infoSo, NuGet should not call
AnsiConsole.Consoleuntil it actually needs it. Lazy should do it.