dotnet / dotnet/sdk

dotnet run ignores verbosity level and outputs "Building..." even if it set to quiet.

Open
#42,851 0 comments 0 reactions 0 assignees View on GitHub
Area-CLI untriaged
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

### Describe the bug
When I run `dotnet run -v q` on asp.net core application I want the output to contain only what the application outputs. However, I see `Building...` string.
Actually, it's even [in the docs](https://learn.microsoft.com/en-us/aspnet/core/getting-started/?view=aspnetcore-8.0#run-the-app) =)

[This line](https://github.com/dotnet/sdk/blob/f22114f34c27fe3317fb71f0af6d7e19c5b4721d/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs#L48) should be wrapped in a check for `HasQuietVerbosity` identically to how it's done [here](https://github.com/dotnet/sdk/blob/f22114f34c27fe3317fb71f0af6d7e19c5b4721d/src/Cli/dotnet/commands/dotnet-run/RunCommand.cs#L142).

### To Reproduce
Just create a default asp.net core project and execute
```
dotnet run -v q
```
and see the output.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.