Skip to content

ORLEANS0005: Add GenerateSerializer

PropertyValue
CategoryUsage
SeverityInfo
Code fixAvailable

A type has [Serializable] but does not have [GenerateSerializer].

The type does not use Orleans source-generated serialization and can miss Orleans’ version-tolerant schema and generated-code performance.

Apply the code fix to add [GenerateSerializer], then address any ORLEANS0004 diagnostics by assigning stable member IDs or excluding members.

Suppress when the type is never serialized by Orleans or deliberately uses a custom or external serializer.

[*.cs]
dotnet_diagnostic.ORLEANS0005.severity = none