Compile exception with Xamarin Forms app migrated to .NET Standard 2.0 with sqlite

SevBSevB USMember ✭✭

I have just migrated my Xamarin Forms project to .NET Standard 2.0 and am having trouble getting the project to compile. I continue to get the exception "Exception while loading assemblies: System.IO.FileNotFoundException: Could not load assembly 'SQLite-net, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?"

My solution is set up as such;

  • Forms Project - .NET Standard 2.0 Lib
  • Core Project - .NET Standard 2.0 Lib
  • DataProject (using sqlite-net-pcl) .NET Standard 2.0 Lib
  • Android
  • iOS
  • UWP

When running the Android project I get the above error. I am not certain what I am doing wrong (I am sure it is something obvious) and would appreciate some advice and guidance.

Thanks all!

Sign In or Register to comment.