-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Calling SqliteConnection from Microsoft.Data.Sqlite v6.0.0 throws TypeInitializationException #26729
Comments
I am having the same issue using .NET Framework non-sdk style projects and AnyCPU. I thought it was a bug in SQLitePCLRaw.bundle_e_sqlcipher that was fixed in v2.0.7 but I have included that version (see: ericsink/SQLitePCL.raw#451) and I am still seeing the same issue. |
@faburaya @jonreis This looks like a duplicate of #26574, which is fixed for the 6.0.1 release. Can you try with the daily build, which is EF7, but contains the fixes for 6.0.1, and report back? |
@ajcvickers I can confirm this works fine in version: 7.0.0-alpha.1.21568.2. Thank you. |
@ajcvickers , |
@faburaya Microsoft.Data.Sqlite in the daily feed will still run on .NET Core 3.1. It's only the EF stuff that requires .NET 6. |
I have just upgraded the nuget package Microsoft.Data.Sqlite to version 6.0.0 and this code
now fails with the exception reported below
If I rollback to package version 5.0.12, then it works normally again.
This bug can be reproduced by running
Reusable.DataAccess.Sqlite.IntegrationTests
from this build of my project:https://github.com/faburaya/dotNetReusable/commit/b085274e8126bb22a5d0b720b8aa9ef63c73849c
Further details of the failure can be found here:
https://dev.azure.com/faburaya/Reusable.NET/_build/results?buildId=15&view=results
The text was updated successfully, but these errors were encountered: