Serialization issues #2 - Orleans 8.0.0
As per doc https://learn.microsoft.com/en-us/dotnet/orleans/host/configuration-guide/serialization?pivots=orleans-7-0#serializing-record-types
When using GenerateCodeForDeclaringAssembly for an external lib and Sdk is not added to the library I just added a failing test (which is skipped) with a repro https://github.com/dotnet/orleans/pull/8860
Reference to the original issue: https://github.com/dotnet/orleans/issues/8859
We are running into a similar issue but on Orleans 7. Record type was not serializing, instead was set to a default object. No warnings or errors during this process, which made it very hard to even notice. The fix in our case was to move the record type into a different assembly which was referencing the Orleans SDK