New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AV2210: Require warning level 9999 #121
Comments
Hi, Could there be any reason why it's still triggering the AV2210? Thanks, |
This is a known issue in .NET 5, tracked at dotnet/sdk#21599. |
Thank you very much, I did not found that! (we upgraded to .net5 a few weeks ago and I only got the warning when we updated the nuget package recently so I thought it was coming from it) |
Use the workaround described in the linked issue. On my machine, <!-- If the user specified 'preview' we want to pick a very high warning level to opt into the highest possible warning wave -->
<WarningLevel Condition="'$(Language)' == 'C#' And '$(AnalysisLevel)' == 'preview'">9999</WarningLevel> which means you can select 'preview' too. |
The highest warning level used to be 4, until C# 9 added warning level 5. Microsoft now recommends to use 9999, which should include all future warning levels.
AV2210 should be updated to require level 9999.
The text was updated successfully, but these errors were encountered: