-
Notifications
You must be signed in to change notification settings - Fork 453
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
Method not found in target type: Microsoft.Data.Sqlite.SqliteConnection.ClearAllPools() #4446
Comments
Method is still here in v8, so I assume microsoft marked v8 as trimmable and it was removed by AOT compilation as not used. You need to configure your AOT compilation to preserve this method. |
@MaceWindu you're right. Solved it by adding the following to the android csproj file. Should I consider this as a temporary workaround or should I keep it?
|
For now keep it. We still need to decide what to do with AOT support as it is quite a big task taking into account amount of reflection we use. |
Okay thanks for the feedback! I'll keep it in for now. |
When using the latest version of Microsoft.Data.Sqlite (8.0.2), the following exception occurs when running my app in Release mode on Android. Not sure if it's Android specific, but i'll mention it anyway.
When downgrading to Microsoft.Data.Sqlite 7.0.16, the issue is resolved.
Environment details
The following properties are set within the csproj if needed:
Linq To DB
version: 5.4.0Database (with version): Sqlite
ADO.NET Provider (with version): Microsoft.Data.Sqlite 8.0.2
Operating system: Android, probably others too
.NET Version: .NET 8
The text was updated successfully, but these errors were encountered: