Exception thrown: 'System.IO.FileNotFoundException' sqlite
-
So I'm working on a plugin for an application. So I'm creating a ClassLibrary in C#. I'm stuck at this point where it throws that error telling me that System.data.sqlite.dll isn't found. But I've checked it and even manually replaced the file, and it's there. Another thing to note is that since it's a ClassLibrary, there no executable, it runs when the button on the application is pressed to run the plugin. Also this is my first time working with sqlite in C#. So I followed someone's instructions, which told me to simply get sqlite core from nuget and get dapper from nuget. I've done that. Do I need to get something from system.data.sqlite's website? Please excuse the way I've asked too many question, but I'm just puzzled. This is my first time working with a Class Library and I never thought it'd be so much different to a console or winform application. Regards
-
So I'm working on a plugin for an application. So I'm creating a ClassLibrary in C#. I'm stuck at this point where it throws that error telling me that System.data.sqlite.dll isn't found. But I've checked it and even manually replaced the file, and it's there. Another thing to note is that since it's a ClassLibrary, there no executable, it runs when the button on the application is pressed to run the plugin. Also this is my first time working with sqlite in C#. So I followed someone's instructions, which told me to simply get sqlite core from nuget and get dapper from nuget. I've done that. Do I need to get something from system.data.sqlite's website? Please excuse the way I've asked too many question, but I'm just puzzled. This is my first time working with a Class Library and I never thought it'd be so much different to a console or winform application. Regards
If it's a plugin, is it looking for the file in the directory of the application you've plugged into, rather than in the directory of the plugin? Maybe you could use the
AssemblyResolve
event to locate the file? Resolve assembly loads | Microsoft Docs[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer