Open christophvw opened 7 years ago
what do you suggest?
Install the assembly to %ProgramFiles% or GAC/WinSxS
How about referencing the System.Data.SQLite nuget package, and remove all this loading from AppData?
sqlite is native dll therefore there are 2 versions: x86 and x64, in order to work on AnyCPU loading is required
p.s. you can change cache location https://github.com/radioman/greatmaps/blob/master/GMap.NET.Core/GMap.NET.CacheProviders/SQLitePureImageCache.cs#L140
When using the System.Data.SQLite nuget package you get both the x86 and x64 version of SQLite.Interop.dll
SQLite dependency is loaded from AppData folder which will be blocked by AppLocker on our Windows Enterprise Installations.
Loading executable files from user writeable locations is a really bad idea as this could lead to a privilege escalation.