-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
.NET 7 Native AOT error: Generic virtual method pointer lookup failure #75
Comments
Thanks. |
I'm also experiencing this issue. Edit: Unmanaged types seem to be serializing and deserializing with Native AOT correctly. |
I received a response.
I have noted this in the ReadMe. |
This has been fixed in dotnet/runtime#80601 It's possible to use the daily build of
After that you can build the project with AOT (e.g.
|
The solution worked for me for a custom class serialization/deserialization.
This happens to every generic I try. |
First, thanks for updating MemoryPack to work with .NET 7 and AOT.

Unfortunately my native AOT test program (latest .NET 7) is crashing with the error below:
(it works OK in debug and release mode in Visual Studio, but crashes only after publishing and running the AOT executable)
Here is the full test code:
The text was updated successfully, but these errors were encountered: