Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
添加代码质量 NuGet 包后,我可以看到默认情况下,某些规则的有效严重性级别设置为抑制。但它们的默认严重性级别仍然是警告。
严重性设置为抑制而不是警告
如何将所有规则的严重性设置为警告?
我尝试在 .csproj 文件中使用 AllEnabledByDefault。但它不起作用。
有什么帮助吗?
启用分析器警告
在我看来,没有办法启用所有默认禁用的分析器警告。我们所能做的就是使用以下命令启用所需的警告:
dotnet_diagnostic..severity =