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
Post a Comment