Skip to content

ORLEANS0010: Add a stable Alias

PropertyValue
CategoryUsage
SeverityInfo
Code fixAvailable

A grain interface, grain-interface method, or generated-serializer data type has no [Alias].

Orleans falls back to a name-derived identity. Renaming the CLR type or method can break serialized data, RPC compatibility, or rolling upgrades.

Add a stable, intentionally chosen alias and preserve it across CLR renames. The code fix generates a type alias from its namespace and nesting, or a method alias from its current method name.

Review generated aliases for overloaded methods because each overload needs a unique method identity.

Suppress only when compatibility across renames, deployments, and persisted data is explicitly irrelevant.

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