Skip to content

Provide a way to redirect or stop output for dotnet watch #50768

@timheuer

Description

@timheuer

In MCP server development, output in a running app to stdout that is not protocol-specific will cause issues. It is preferred to promote that type of output to stderr or none at all. Using dotnet watch run in the debug loop without any changes will cause the MCP protocol to not be great.

It would be good to have a standard flag to either redirect or cease output standard output from watch during the flow. Having this at the CLI would make it shell agnostic.

Workarounds (shell-specific):
dotnet watch run > nul (windows powershell) -- something else needed for bash, etc.

Metadata

Metadata

Assignees

Labels

Area-CLIArea-Watchdotnet-watchbreaking-changeUsing this label will notify dotnet/compat and trigger a request to file a compat bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions