If you have an empty NoWarn tag <NoWarn></NoWarn> in your .csproj, it will overwrite the Directory.Build.Props settings, and it will show all warnings.