102425074
102425074

Reputation: 811

Why SQLite crash in UWP with cannot find the file specified?

I install the SQLite from Nuget as below: enter image description here

And after I ran the program it throws this error: enter image description here

I feel strange that it showed the Version is 1.0.109.0 but not the version I installed which 1.0.109.2

What's more, I tried the way what Could not load file or assembly 'System.Data.SQLite, Version=1.0.109.0 - Why does it search for version 1.0.109.0 when I have referenced 1.0.109.1 said

But all the way no works.

In addition, I opened the .csproj and here is the SQLite package reference: enter image description here

The version in .csproj is right.

What's wrong with it.Would you please tell me how to solve it? Thank you.

Upvotes: 1

Views: 75

Answers (1)

mm8
mm8

Reputation: 169200

Make sure that the SQLite assembly gets copied to your output directory so it can be found at runtime. It should if you install the SQLite package in your UWP app project.

Upvotes: 1

Related Questions