Repository navigation
[release/11.0] Route task output to the build log instead of the console - #17683
Merged
Merged
Conversation
MSBuild tasks that write to System.Console bypass the build loggers. The output is not attributed to a project or target, it does not appear in binlogs, and once tasks run concurrently on shared nodes it interleaves arbitrarily with output from other tasks. Three tasks did this: InstallDotNetCore forwarded the dotnet-install script's stdout and stderr to the console and announced already-installed runtimes there. PublishBuildToMaestro emitted four Azure Pipelines logging commands to the console. The agent locates the ##vso[ prefix with IndexOf rather than StartsWith, so the console logger's leading indentation does not affect them, and the same file already emits an artifact.upload command through Log.LogMessage a few lines earlier. GenAPITask returned Console.Out as the writer for generated API text whenever no output path was set.
JanProvaznik
approved these changes
Oct 9, 2026
AR-May
approved these changes
Oct 9, 2026
JanProvaznik
enabled auto-merge (squash)
October 9, 2026 11:16
VolPlita
pushed a commit
to dotnet/msbuild
that referenced
this pull request
Oct 9, 2026
Reverts #15197 breaks official build and we need to have it ready before dotnet/arcade#17683 flows
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.
Backport of #17412 to release/11.0
/cc @JanProvaznik @ViktorHofer