title: Xamarin Forms UWP Sqlite connection, Could not load file or assembly SQLite-net
body: <p>I am stuck in connecting sqlite with xamarin forms/pcl/uwp application. Following is my code to set path for database</p>
  
  <p><strong>Android</strong> (Following works perfectly alright)</p>
  
  <pre><code>App1.globals.path = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
  //App1.globals.path=&gt; /data/user/0/com.companyname.App1/files
  LoadApplication(new App1.App());
  </code></pre>
  
  <p><strong>UWP</strong> (Following does not work)</p>
  
  <pre><code>App1.globals.path = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
  //App1.globals.path =&gt; C:\Users\sami.akram\AppData\Local\Packages\8e3de984-9360-4549-a5cc-80071995402b_hy7qfqqm9rwga\LocalState
  LoadApplication(new App1.App());
  </code></pre>
  
  <p>Following is the code in <strong>App1 (Portable)</strong> => Main App</p>
  
  <pre><code>[assembly: XamlCompilation(XamlCompilationOptions.Compile)]
  namespace App1
  {
  
      public class globals
      {
          public static string path = "test.db3";
      }
  
      public partial class App : Application
      {
          public App()
          {
              InitializeComponent();
              var dbPath = System.IO.Path.Combine(globals.path, "test.db3");
              var db = new SQLiteConnection(dbPath);
              SetMainPage();
          }
      }
  }
  </code></pre>
  
  <p>Error I face is</p>
  
  <blockquote>
    <p>Could not load file or assembly 'SQLite-net, Version=1.4.118.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/11nqd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/11nqd.png" alt="enter image description here"></a></p>
  
  <p>But assembly version should not be any issue as I have installed same sqllite for all projects following image shows it. Note I tried the app with .net 4.5 and .net 4.6 but it results same.</p>
  
  <p><a href="https://i.stack.imgur.com/X8wrv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X8wrv.png" alt="enter image description here"></a></p>
  
  <p>I tried clean solution rebuild solution. Nothing is helping yet, same error could not load assembly..</p>