c# - How do I Include a .dll in compilation to avoid dynamic linking? -


i using third party dll file referenced within visual studio project using c#. in previous experiences on other projects, able load objects different dlls using dllimport, create objects if source code of dll included in project. however, method not working 3rd part dll. program works flawlessly on computer programming on, however, when run on different computer, cannot find dll. there method include dll compiling , avoid using dynamic linking?

the default setting of .net framework load native libraries system paths, not current directory.

but might learn system.data.sqlite project (open source), pre-loading native libraries current folder, , based on os bitness,

http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki

although generating mixed mode assembly (native , managed bits merged) sounds better solution, system.data.sqlite users confused. thus, recommend pre-loading approach.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -