.NET MAUI 9 Release Builds with the DataSync Client failing #380
Replies: 2 comments
-
Not a MAUI person, but does this not help? https://communitytoolkit.github.io/Datasync/in-depth/client/advanced/maui-aot/ |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ahh, I am sorry about that @adrianhall. I totally missed this documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello fellow datasync devs,
I have been working with the datasync client library and it has been working great. Debug builds work great but release builds are failing as soon as I open the app. I have made plenty of release builds before introducing the data sync client and they were all working great. Since adding this library, my app no longer works in release. I do not think this is an issue with the library, that is why I have added this to discussion over an issue for this library.
How are you all going about getting your .NET MAUI releases working for release builds?
I have attempted to do a release build using the client library in my .NET MAUI app but it fails on app start. Has anyone encountered this and if so, have you found a solution.
I am using Aptabase for logging and I am getting these 2 logs when the crash happens:
00 Fatal InvalidOperationException: Model building is not supported when publishing with NativeAOT. Use a compiled model.
2
01 at Microsoft.EntityFrameworkCore.Internal.DbContextServices.CreateModel(Boolean designTime)
Any insight/guidance around this would be very much appreciated.
I have tried the following:
https://github.com/dotnet/maui/issues/23653
https://github.com/dotnet/maui/issues/12537
https://github.com/dotnet/maui/issues/12537
I also stripped out a lot of my work around the datasync client library so I can test around the bare minimum. With the library, plus offline dbcontext set up and the model set up and it stil fails.
Beta Was this translation helpful? Give feedback.
All reactions