PCL vs .NET Standard for SQLite in UWP

I have the following problem.

I use a portable library in my UWP application (the portable library is shared with the Xamarin application). This portable library references SQLite. In this portable library, I also use Prism and Unity. For this reason, I still cannot upgrade them to .NET Standard. The SQLite library I'm using is SQLite-net-pcl version 1.4.18.

In my UWP application, I add the same nugget package. The problem is that this nugget package also supports the .net standard, as a result, when I create my UWP library, I have another version of SQLite-net.dll, from netstandard1.1.

And as a result of this, when I launch the application, I got an exception:

"Failed to load the file or assembly SQLite-net, Version = 1.4.118.0, Culture = neutral, PublicKeyToken = null. The located assembly definition does not match the assembly reference. (Exception from HRESULT: 0x80131040). This is understandable because SQLite-net dll in the bin folder is different (it even has a different version).

What I would like to do is use the PCL DLL in my UWP application at the moment, is there any way to force it? Any other ideas how to solve them?

+4
source share
1 answer

Submitted this question on Github

Should be allowed in 1.5.166-beta

+4
source

Source: https://habr.com/ru/post/1682985/


All Articles