3 ms·
I'm aware of P/Invoke. I'm pretty sure that's how the ADO.NET wrapper to SQLite works. GP was referring to statically linking a native binary to a .NET applic
by juliangoldsmith 9y ago
I'm aware of P/Invoke. I'm pretty sure that's how the ADO.NET wrapper to SQLite works. GP was referring to statically linking a native binary to a .NET application, and as far as I know, there's no way to do that.
- WorldMaker 9y agoI was curious. One approach is apparently to include it as a binary resource, extract it to temporary space at runtime, then P/Invoke: https://stackoverflow.com/a/768429 https://stackoverflow.com/a/768429 That seems a bit much to simulate static linking, but doesn't sound like it would be too noticeable to users.
- juliangoldsmith 9y agoThat's an interesting technique, and would certainly work. You could probably even make it cross-platform that way.