Skip to content

Document how to configure code analyzers in legacy projects #45182

@cremor

Description

@cremor

Type of issue

Missing information

Description

This article often mentions that configuration settings only work with SDK projects starting with .NET 5. It also mentions that you have to use the Microsoft.CodeAnalysis.NetAnalyzers NuGet package for legacy (non-SDK) .NET Framework projects. But there is no documentation on how to configure the analyzers when you use the NuGet package. For example how to enable additional analyzers.

See also dotnet/roslyn-analyzers#4776 (comment)

Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview?tabs=net-9

Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/overview.md

Document Version Independent Id

128f9903-971d-6a66-a2cb-9b12acbc55e7

Platform Id

6c404312-136c-21aa-d92a-1cb8ea7ecdcf

Article author

@gewarren

Metadata

  • ID: f8906b2c-b984-0427-d064-829e7ea2fc55
  • PlatformId: 6c404312-136c-21aa-d92a-1cb8ea7ecdcf
  • Service: dotnet-fundamentals

Related Issues


Associated WorkItem - 486224

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions