Skip to content

Are "CA2229 and CA2237" analyzers relevant beginning with .NET 8 Preview 4 #7026

@kartheekp-ms

Description

@kartheekp-ms

Analyzer

Diagnostic ID(s):

  • CA2237: Mark ISerializable types with SerializableAttribute
  • CA2229: Implement serialization constructors

Analyzer source

SDK: Built-in CA analyzers in .NET 5 SDK or later

Version: SDK 5.0.100

OR

NuGet Package: Microsoft.CodeAnalysis.NetAnalyzers

Version: 5.0.3 (Latest)

Describe the bug

Are CA2229 and CA2237 analyzers relevant anymore given that the serialization constructor is marked as Obsolete beginning with .NET 8 Preview 4? Refer to dotnet/docs#34893 for more details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions