-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
good first issueIssues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.
Milestone
Description
Describe the bug
[On a Mac M1 using .NET 9.]
When using dotnet run to run a project that uses a launchSettings.json file, it writes a startup message like "Using launch settings from {filename}..." to stdout. Other run messages are written (correctly) to stderr. Because the message is written to stdout, it mixes in with the expect output of the program, often making it unparseable.
To Reproduce
- Clone this simple console project example: https://github.com/Aethon/DotNetOutputExample.
- Execute
dotnet run > output.json. - Examine
output.jsonand note that it is not valid JSON due to the message at the top.
Further technical details
The errant line of code is here: https://github.com/dotnet/sdk/blob/main/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs#L135.
Ghost4Man and nblumhardt
Metadata
Metadata
Assignees
Labels
good first issueIssues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.