-
Notifications
You must be signed in to change notification settings - Fork 6k
Document breaking change: 'dotnet watch' logs to stderr instead of stdout in .NET 10 RC 2 #48925
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: gewarren <[email protected]>
dotnet watch
logs internal-facing messages to stderr instead of stdoutThere 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.
Pull Request Overview
This PR documents a breaking change in .NET 10 RC 2 where dotnet watch
now emits its internal log messages to stderr
instead of stdout
. This is part of a broader effort to prevent .NET CLI commands from obscuring the stdout
channel, which is often reserved for special semantics when running applications like LSP or MCP servers.
- Added new breaking change documentation file explaining the behavior change
- Updated table of contents to include the new breaking change entry
- Added entry to the .NET 10 breaking changes index with proper categorization
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
docs/core/compatibility/sdk/10.0/dotnet-watch-stderr.md | New breaking change documentation explaining the dotnet watch stderr logging change |
docs/core/compatibility/toc.yml | Added table of contents entry for the new breaking change document with reorganization of existing entries |
docs/core/compatibility/10.0.md | Added entry to the .NET 10 breaking changes index table |
Co-authored-by: Copilot <[email protected]>
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.
Internal previews