This isn't currently working as-is. See https://github.com/dotnet/roslyn/issues/49635#issuecomment-738984310, https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview#enable-on-build and https://github.com/dotnet/roslyn/issues/33558 [General info on the format for .editorconfig analyzer settings](https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/language-rules#option-format) might be useful too. See also [NETAnalyzers](https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#enablenetanalyzers)
This isn't currently working as-is.
See dotnet/roslyn#49635 (comment), https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview#enable-on-build and dotnet/roslyn#33558
General info on the format for .editorconfig analyzer settings might be useful too. See also NETAnalyzers