dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
9.89k stars 2.01k forks source link

Serialization issues #3 - Orleans 8.0.0 #9007

Open claylaut opened 2 weeks ago

claylaut commented 2 weeks ago

We also have another issue which is harder to reproduce in tests

namespace Odin.Mimir.Shared.Universe;

[Immutable]
[GenerateSerializer]
public sealed class UniverseIndexQuery : MimirOrleansComplexQuery<UniverseIndexQuery, IUniverseIndices>
{
}

The problem is IUniverseIndices. When its sourcegened the namespace is not resolved, and instead its simply emitted as IUniverseIndices; IUniverseIndices itself is generated through our sourcegen (custom), so most probably thats why its namespace is not resolved.

SourceGen Error
image image

This is the source of our generated IUniverseIndices image