c# - Embed an library into my application and make it use that library -


i want executable thing needed program work, dependant of library, more mysql.data.dll. how can incorporate library executeable?

i've dragged dll project explorer. furthermore have selected afterwards , set build action embedded resource

however still face filenotfound exception when in application try open new window:

an unhandled exception of type 'system.io.filenotfoundexception' occurred in presentationframework.dll

additional information: not load file or assembly 'mysql.data, version=6.9.8.0, culture=neutral, publickeytoken=c5687fc88969c44d' or 1 of dependencies. system cannot find file specified.

edit:

is different when using winforms? have been doing earlier, winforms application used ioniczip , json library, included embedded ressource. way didnt need include 2 dll files application.

see question: merging .net managed dlls

generally speaking, might want careful terms , conditions of library might forbid doing that.

by setting build action, include dll content in executable, doesn't allow .net use it. "embedded resource" should used including images, fonts etc. application uses.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -