c# - Missing DLLs from a class library that uses separate DLLs -


in c# .net 4.0 creating class library / dll plan reuse in many other projects. class library use several dlls itself. example, class library creating may reference several dlls like:

serverconnectorlibrary references: lib1.dll lib2.dll lib3.dll 

when build this, serverconnectorlibrary.dll output in bin\debug folder.

what want use serverconnectorlibrary.dll in other projects. however, when add dll new projects , run following error:

filenotfoundexception: not load file or assembly "lib1.dll". 

if add lib1.dll bin\debug folder of new project, problem not solved.

you may able combine of dependencies single assembly. here old example on codeproject.

http://www.codeproject.com/articles/9364/merging-net-assemblies-using-ilmerge

there stackoverflow thread here...

how merge multiple .net assemblies single assembly?

otherwise, make sure properties each dependency set copy local , include dependencies along library. these dlls, dynamically linked @ run-time, unlike older c++ , c libraries might statically linked.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -