Akavache: [BUG] MissingMethodException when project build and deployed via Visual Studio 2022
Attempting to insert an object into the BlobCache via BlobCache.LocalMachine.InsertObject fails on Xamarin.Forms (Android) when my project is built using Visual Studio 2022.
It throws a MissingMethodException:
System.MissingMethodException: Method not found: int SQLitePCL.raw.sqlite3_bind_blob(SQLitePCL.sqlite3_stmt,int,System.ReadOnlySpan`1<byte>)
at Akavache.Sqlite3.SqliteOperationQueue.MarshalCompletion (System.Object completion, System.Action block, System.IObservable`1[T] commitResult) [0x00007] in D:\a\Akavache\Akavache\src\Akavache.Sqlite3\Queues\OperationQueue.cs:395
Note that this same code works when built using Visual Studio 2019. I don’t believe this is a linker issue as I have turned off that setting and this still persists.
Has anyone else seen this issue? Are there any workarounds? Obviously, I can keep working in 2019, but not being able to use the most recent IDE’s is a pain.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 29 (11 by maintainers)
@glennawatson sorry it’s taken me a bit, but I created a dirt-simple sample project that demonstrates the error. https://github.com/mgramley/Akavache.MissingMethodExceptionSample