-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix bug: Exec task trims leading whitespace in ConsoleToMsBuild #9722
Fix bug: Exec task trims leading whitespace in ConsoleToMsBuild #9722
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I only have one suggestion concerning the testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to change from "Comment" to "Approve".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left one question out of curiosity
The change wave check should be documented in https://github.com/dotnet/msbuild/blob/main/documentation/wiki/ChangeWaves.md#1710. |
Fixes #9668
Context
See the issue description with example
Changes Made
Here the string is trimmed of all whitespace characters:
msbuild/src/Tasks/Exec.cs
Lines 411 to 413 in 195e7f5
I changed it to trim only the end, so that the leading whitespace characters are preserved in the output
Testing
Added a unit test and tried out the example in the issue manually
Notes