I'm trying to make sure I understand what is needed so I can use SQLite in a single plugin supporting both platforms. I am aware you need a PLUGIN.exe.config so you can point your plugins EXE at the right DLL(s). Something like below:
WINDOWS
Appears to need both System.Data.SQLite.dll and SQLite.Interop.dll which you get from your Windows HS3 and at plugin install time copy to the path listed as "probing privatePath" above. The file details page on both of these report version 1.0.87.0 and are from 2/14/2014.
LINUX
Appears to need only System.Data.SQLite.dll You apparently have to get this from the HS3 linux tar.gz file as it's a bit similar in size thus not identical to the one used with windows. This also reports version 1.0.87.0 but is dated 11/13/2014 if you extract it on windows and check it.
I've done a good deal of testing all the combinations of these two DLLs and suffice to say, what I've put above is what I find to work, anything else throws strange errors and won't open the SQLite db3 file.
So it seems we need some install time magic to get the right platform specific DLLs in place from a single plugin distribution. Does someone have a good example install.txt to handle this during plugin installation time? Surely someone already has this working well?
Thanks
Nathan
Code:
<?xml version="1.0" encoding="utf-8"?> <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <probing privatePath="Bin/YOURPLUGINHERE"/> </assemblyBinding> </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>
WINDOWS
Appears to need both System.Data.SQLite.dll and SQLite.Interop.dll which you get from your Windows HS3 and at plugin install time copy to the path listed as "probing privatePath" above. The file details page on both of these report version 1.0.87.0 and are from 2/14/2014.
LINUX
Appears to need only System.Data.SQLite.dll You apparently have to get this from the HS3 linux tar.gz file as it's a bit similar in size thus not identical to the one used with windows. This also reports version 1.0.87.0 but is dated 11/13/2014 if you extract it on windows and check it.
I've done a good deal of testing all the combinations of these two DLLs and suffice to say, what I've put above is what I find to work, anything else throws strange errors and won't open the SQLite db3 file.
So it seems we need some install time magic to get the right platform specific DLLs in place from a single plugin distribution. Does someone have a good example install.txt to handle this during plugin installation time? Surely someone already has this working well?
Thanks
Nathan
Comment