Skip to content

[release/11.0] Route task output to the build log instead of the console - #17683

Merged
JanProvaznik merged 1 commit into
release/11.0from
backport/pr-17412-to-release/11.0
Oct 9, 2026
Merged

JanProvaznik merged 1 commit into
release/11.0from
backport/pr-17412-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Backport of #17412 to release/11.0

/cc @JanProvaznik @ViktorHofer

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
JanProvaznik enabled auto-merge (squash) October 9, 2026 11:16
@JanProvaznik
JanProvaznik merged commit a143f83 into release/11.0 Oct 9, 2026
10 of 12 checks passed
@JanProvaznik
JanProvaznik deleted the backport/pr-17412-to-release/11.0 branch October 9, 2026 11:53
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants