Description
Describe the bug 🐞
I am trying to make an Avalonia app for Windows (later MacOS), I wanted to use Akavache to store some user settings in encypted blob in a custom location (not using the static stuff).
Works fine in Debug, but after publishing with native AOT I get the error:
Unhandled exception. System.InvalidOperationException: There is not a valid operation queue
at System.Reactive.Subjects.AsyncSubject`1.GetResult() + 0x129
at Program.<<Main>$>d__0.MoveNext() + 0x144
--- End of stack trace from previous location ---
at Program.<Main>(String[] args) + 0x24
I made a reproduciton repo: https://github.com/qrzychu/Akavache.AOT-Sample
Is native oat even possible? I went through the code and it seems to use a lot of reflection. I added proper instrctions to not trim Akavache assemblies, but maybe I am missing something.
If AOT is not in the scope, I will just find a different solution
Step to reproduce
all in repo
I use the publish
output instead of native
because I haven't yet figured out how to copy all needed native binaries (like SQLite in case of Akavache)
Reproduction repository
https://github.com/qrzychu/Akavache.AOT-Sample
Expected behavior
This should happen...
Screenshots 🖼️
No response
IDE
Rider Windows
Operating system
No response
Version
No response
Device
No response
ReactiveUI Version
No response
Additional information ℹ️
IDE doesn't really matter, you have to run the native binary created by dotnet publish