ORLEANS0005: Add GenerateSerializer
| Property | Value |
|---|---|
| Category | Usage |
| Severity | Info |
| Code fix | Available |
A type has [Serializable] but does not have [GenerateSerializer].
Impact
Section titled “Impact”The type does not use Orleans source-generated serialization and can miss Orleans’ version-tolerant schema and generated-code performance.
How to fix
Section titled “How to fix”Apply the code fix to add [GenerateSerializer], then address any ORLEANS0004 diagnostics by assigning stable member IDs or excluding members.
Suppress the diagnostic
Section titled “Suppress the diagnostic”Suppress when the type is never serialized by Orleans or deliberately uses a custom or external serializer.
[*.cs]dotnet_diagnostic.ORLEANS0005.severity = none