title: SQLite.Interop unable to delete file on clean of solution
body: <p>I'm using the Nuget package <code>System.Data.SQLite</code> in an MVC web application. There seems to be lock issue when I try to clean the solution and rebuild. The error message I get is:
  <code>Unable to delete file "bin\x64\SQLite.Interop.dll". Access to the path '\bin\x64\SQLite.Interop.dll' is denied.</code></p>
  
  <p>I'm thinking that the database is either still open or that the .dll is still in use, but I can't find any documentation or any reference to the same problem. This <a href="https://stackoverflow.com/questions/13028069/unable-to-load-dll-sqlite-interop-dll">question</a>  seems like a similar issue but doesn't provide a resolution to my problem.</p>
  
  <p>Here is a code snippet that I'm using to write to the SQLite database:</p>
  
  <pre><code>        var conn = new SQLiteConnection("Data Source=" + connectionString);
          conn.Open();
  
          var debugEntriesTableQuery = "CREATE TABLE ...";
  
          var cmd = conn.CreateCommand();
  
          cmd.CommandText = debugEntriesTableQuery;
  
          cmd.ExecuteNonQuery();
  
          conn.Close();
  </code></pre>
  
  <p>Is there another step needed to properly close the connection to the database and inform the dll and the connection has closed? </p>
  
  <p>I am using this code inside a data solution that I have added to a nuget package and am using in another solution. I am only having this problem when building/cleaning the solution that is using my nuget package. </p>