Document breaking change: 'dotnet watch' logs to stderr instead of stdout in .NET 10 RC 2 #48925
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.
This PR documents a breaking change in .NET 10 RC 2 where
dotnet watch
now emits its internal log messages tostderr
instead ofstdout
.Changes
docs/core/compatibility/sdk/10.0/dotnet-watch-stderr.md
docs/core/compatibility/toc.yml
)docs/core/compatibility/10.0.md
)Breaking Change Summary
Starting in .NET 10 RC 2,
dotnet watch
emits its own log messages to thestderr
channel instead ofstdout
. This change is part of a broader effort to prevent .NET CLI commands from obscuring thestdout
channel, which is often reserved for special semantics when running applications like LSP or MCP servers.Most users won't need to take any action. If users need the
dotnet watch
messages onstdout
, they can redirect thestderr
stream using2>&1
.This change was implemented in dotnet/sdk#50820.
Fixes #45871
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.