Skip to content

.NET standard 2.0 #22011

@pdufrene

Description

@pdufrene

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions