Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

#10678
Merged
rainersigwald merged 5 commits into
vs17.12dotnet/msbuild:vs17.12from
dev/mipavlik/fix-terminallogger-unwanted-charactersdotnet/msbuild:dev/mipavlik/fix-terminallogger-unwanted-charactersCopy head branch name to clipboard
Sep 19, 2024
Merged

Fixes writing unwanted characters to console when TerminalLogger is created directly#10678
rainersigwald merged 5 commits into
vs17.12dotnet/msbuild:vs17.12from
dev/mipavlik/fix-terminallogger-unwanted-charactersdotnet/msbuild:dev/mipavlik/fix-terminallogger-unwanted-charactersCopy head branch name to clipboard

Conversation

@MichalPavlik

@MichalPavlik MichalPavlik commented Sep 19, 2024

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

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

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.