System.DLLNotFoundException using Xamarin on mac

477 Views Asked by At

I'm trying to write an android/iOS, xamarin forms app using visual studio on a mac. I can add a nuget package and compile but when I run it (on both iOS and android) I get the System.DLLNotFoundException.

This happens with many nuget packages but here's the simplest example.... I create a new multi-platform blank forms app use .NET Standard add System.Data.SQLite.Core nuget package add "using System.Data.SQLite;" to my .cs file

Then I add this line of code anywhere...

SQLiteConnection db = new SQLiteConnection();

and I am getting exception on that line

Where are these libraries stored and how do I get them to deploy with my app when I'm running/debugging?

1

There are 1 best solutions below

4
DirtyNative On BEST ANSWER

I am not sure if this is the problem, but maybe the nugets you had imported are not designed for the Forms App. Try using SQLite.Net-PCL