I'm using the Nuget package System.Data.SQLite in an MVC desktop application. I get an error when I try to clean the solution. The error message I get is: Unable to delete file "...bin\Debug\x64\SQLite.Interop.dll". Access to the path '\bin\Debug\x64\SQLite.Interop.dll' is denied.
This is nearly the same question that was asked here, but because I just created my SO account, I am unable to add my comment there.
I am using the NuGet packages System.Data.SQLite and System.Data.SQLite.Core on my database project and System.Data.SQLite.Core on my UI project.
I created a button to Terminate IIS process as suggested in one of the answers, but since I am unable to build my project, I cannot test if this works.
I was able to clean/ build just fine yesterday. I wonder whether repeatedly debugging has created this issue.