question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with Microsoft.EntityFrameworkCore.Sqlite nuget

See original GitHub issue

I’m using SQLite as the database for my app. So I installed Microsoft.EntityFrameworkCore.Sqlite version 3.1.7 nuget & ran the project (Blazor Server App) which caused following exception:

System.MissingMethodException: Method not found: 'System.String SQLitePCL.raw.sqlite3_column_name(SQLitePCL.sqlite3_stmt, Int32)'.

Without Microsoft.EntityFrameworkCore.Sqlite, Hangfire works perfectly.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
chrisevans9629commented, Aug 19, 2020

I have discovered the solution. Adding <PackageReference Include="sqlite-net-pcl" Version="1.7.335" /> to my csproj solved the issue. There was just a version mismatch

1reaction
felixclasecommented, Feb 14, 2021

Same problem, same resolution here. The bug would be easily fixed by updating sqlite-net-pcl to 1.7.335 in the library (<PackageReference Include="sqlite-net-pcl" Version="1.7.335" />), but it would require dumping .NET Framework 4.5 version, since 1.7.335 doesn’t support 4.5 😕

image

So as not to break compatibility with those who are still using .net 4.5

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft.EntityFrameworkCore.Sqlite 7.0.10
Version Downloads Last updated 8.0.0‑preview.7.23375.4 2,750 13 days ago 8.0.0‑preview.6.23329.4 9,344 a month ago 8.0.0‑preview.5.23280.1 10,498 2 months ago
Read more >
Why can't I install Microsoft.EntityFrameworkCore.Sqlite?
The command Install-Package Microsoft. EntityFrameworkCore. Sqlite will try to install the last version. Currently, the last version is 7.0.
Read more >
Nuget error: Package Microsoft.EntityFrameworkCore 5.0.1 ...
Hello, if I try to update to Package Microsoft.EntityFrameworkCore ... EntityFrameworkCore 5.0.1 is not compatible with netcoreapp3.1 #23867.
Read more >
'EntityFramework.Core.Tools' nuget package installation error
While installing the package Microsoft.EntityFrameworkCore.Tools for using EF in my project using Nuget, I'm persistently running into the ...
Read more >
How Can I Install Microsoft.EntityFrameworkCore.Sqlite in ...
I'm trying to install SQlite from Nuget but I got an error. I'm using NET Core 2.1. What should I do? Microsoft.EntityFrameworkCore.Sqlite 3.0.0 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found