Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes writing unwanted characters to console when TerminalLogger is created directly #10678

Merged

Conversation

MichalPavlik
Copy link
Member

@MichalPavlik MichalPavlik commented Sep 19, 2024

Fixes #10579

Summary

Command dotnet run creates TerminalLogger instance and bypasses code that enables VIRTUAL_TERMINAL_PROCESSING on Windows. This can cause rendering of unwanted VT100 control codes in the console.

Customer Impact

Customer see "weird" characters on terminal that doesn't have enabled VT100 support by default - mostly conhost. Reproduces in dotnet new console && dotnet run scenario.

Regression?

Yes, in RC2 from enhanced console output in dotnet run in dotnet/sdk#42240.

Testing

Manual testing. Before and after the fix:
image

Risk

Low. The same logic is used when MSBuild is started via entry point.

@rainersigwald rainersigwald changed the base branch from main to vs17.12 September 19, 2024 16:29
@MichalPavlik MichalPavlik requested a review from a team as a code owner September 19, 2024 16:40
@rainersigwald
Copy link
Member

Reverted version bump (we haven't gone to final versioning in 17.12 yet) and merging on red for that check.

@rainersigwald rainersigwald merged commit fea15fb into vs17.12 Sep 19, 2024
2 of 4 checks passed
@rainersigwald rainersigwald deleted the dev/mipavlik/fix-terminallogger-unwanted-characters branch September 19, 2024 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[NETSDKE2E] With NET 9 RC2 SDK installed, running projects created with CLI result in unwanted strings
5 participants