Could not load file or assembly in UWP Xamarin.Forms

Issue #149 resolved
Sergio Lillo created an issue

I am trying to implement the SQLiteNetExtensions.Async nuget in a Xamarin.Forms project but when I try to create a table with some reference to SQLiteNetExtensions I get the following exception when trying to create a table (only happens in UWP , in the rest of platforms it works well): Could not load file or assembly 'SQLite-net, Version=1.4.118.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the specified file. I have spent a long time trying to figure out what is happening but I am not able to find out given the few examples on the internet. If someone could help me with this it would be helpful. For me it is essential to make this work in UWP

SQLiteNetExtensions.Async version 2.1.0: https://www.nuget.org/packages/SQLiteNetExtensions.Async/

Xamarin.Forms version 5.0.0.2012

I have published the project on GitHub so that it can be reviewed in its entirety: https://github.com/nacompllo/XamarinFormsSQLiteNetExtensionsSample

Comments (1)

  1. Sergio Lillo reporter

    Good news, I have managed to solve this problem, after downloading the source code of SQLite-Net Extensions from the original repository I have proceeded to update the target framework from the version .NET Standard 1.1 to .NET Standard 2.0 of the SQLiteNetExtensions project and SQLiteNetExtensionsAsync from the original repository and I have created a local nuget of those two projects which I have imported into my example project and I have uploaded this solution on my GitHub in case someone needs it in the future.

    I have uploaded a commit in my GitHub repository with the solution implemented: https://github.com/nacompllo/XamarinFormsSQLiteNetExtensionsSample

    These are the two projects from the original repository that need to be updated.

  2. Log in to comment