-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
Description
A sample of csproj targeting netstandard 2.0 will be welcome:
I tried the following csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
</PropertyGroup>
</Project>
But all rules keep their default severity, looks like the AnalysisMode is ignored, it works properly if I do:
<TargetFramework>net5.0</TargetFramework>
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: f8906b2c-b984-0427-d064-829e7ea2fc55
- Version Independent ID: 128f9903-971d-6a66-a2cb-9b12acbc55e7
- Content: Code analysis in .NET
- Content Source: docs/fundamentals/code-analysis/overview.md
- Product: dotnet-fundamentals
- GitHub Login: @gewarren
- Microsoft Alias: gewarren