❔ dotnet build quiet still showing a lot of warnings
running
dotnet build --verbosity quiet
is still showing a lot of warnings. Any suggestions on how to hide those and only show errors?4 Replies
Set
NoWarn
in your csproj: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-options/errors-warnings#nowarnC# Compiler Options - errors and warnings
C# Compiler Options for errors and warnings. These options suppress or enable warnings, and control warnings as errors.
Or set it on the command line with
/P:
fix the warns and they won't show 🙂
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.