Closed akamsteeg closed 2 years ago
Standard .NET analyzers are only enabled by default for projects targeting .NET 5 and up. We can enable them for projects targeting earlier TFMs by adding the following to the .csproj:
.csproj
<EnableNETAnalyzers>true</EnableNETAnalyzers> <AnalysisMode>Recommended</AnalysisMode> <AnalysisLevel>latest</AnalysisLevel>
All analyzer warnings and errors are fixed.
Standard .NET analyzers are only enabled by default for projects targeting .NET 5 and up. We can enable them for projects targeting earlier TFMs by adding the following to the
.csproj
: