Skip to content

ORLEANS0025: Duplicate grain class declaration

PropertyValue
CategoryVersioning
SeverityWarning
Code fixNot 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.

The grain identity history becomes ambiguous, and the parser accepts only the first declaration.

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.

Repair the malformed manifest instead of suppressing this diagnostic.

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