-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with custom record struct serialized in .Net6 doesn't deserializing just after upgrade .Net7 #107
Comments
please show error details(message and stacktrace) |
No exception are throw, just a default value after deserialization only for BeginDt/EndingDt. Maybe is some type of bug in compilation. Is there anything should looking for to clean the build process? |
thanks, I've understood, DateTimeParam has different memory layout between .NET 6 and .NET 7. |
Although it is disucussioned in this Issue as the workaround, .NET 6 and .NET 7 to the same memory layout by specifying [MemoryPackable]
[StructLayout(LayoutKind.Auto)]
public partial record struct DateTimeParam
{
} Also, in the case of netstandard 2.1 code-generator, I will add this new analyzing feature, |
It worked like a charm! Tks for the reply and congrats for the best work you've been doing for so many years. |
Hi,
First at all, I am your fan! I use your libs about 4 years and you rock!!!
About 2 months ago I moved all our binary database (+200k objects) from MessagePack to MemoryPack+BrotliCompressor. My projects were targeting .Net6.
Everything was working as good as expected. Here is a sample that's working on production: https://nextdial.nyc3.digitaloceanspaces.com/20220701.db
Yesterday I updated the VS Studio, installed the .Net7 and upgraded the projects from .Net6 to .Net7. After that, I run a small local test and it worked as expected. So, I export publish it to a clean test VPS with Ubuntu 22.04.1 + .Net7, run again and got a "deserialization failure" (it deserialize all correct except the custom struct, letting it with a default value).
That is the model I have:
The "PooledList" is this package
What could I try to do to solve this issue?
Best,
Thiago
The text was updated successfully, but these errors were encountered: