ORLEANS0025: Duplicate grain class declaration
| Property | Value |
|---|---|
| Category | Versioning |
| Severity | Warning |
| Code fix | Not available |
OrleansContracts.txt repeats an effective grain class identity. The effective identity is GrainType when present and the identity derived from the recorded CLR name using Orleans conventions for a legacy declaration.
Impact
Section titled “Impact”The grain identity history becomes ambiguous, and the parser accepts only the first declaration.
How to fix
Section titled “How to fix”Merge declarations which have the same effective identity into one canonical entry. Active and retired declarations can share a CLR name when they record different explicit GrainType values across an identity migration.
Suppress the diagnostic
Section titled “Suppress the diagnostic”Repair the malformed manifest instead of suppressing this diagnostic.
[*.cs]dotnet_diagnostic.ORLEANS0025.severity = none