[.net] How do I fix the Visual Studio compile error, "mismatch between processor architecture"?

I had the same problem with SQLite opening connection, and using the Nuget and installing the component used in project (SQLite) fixed it! try installing your component this way and check the result