Dan Schnau

How to hide warnings in the dotnet cli

To hide warnings with the dotnet cli in commands such as dotnet build or dotnet test - you have to pass a flag to the underlying msbuild system.

dotnet build --property:WarningLevel=0.

This doesn't make Warnings not happen - but if you know you're not going to be fixing them, it gets them out of the way of your shell.