c# - Dynamic Load of a DLL after ILMerge -
in project, dynamically load .dll based on objects settings. prior ilmerge, worked fine. used ilmerge , created 1 .dll, load fails. how dynamically load .dll after ilmerged? using vs2008 , c#. dlls: common.dll, commonmedical.dll new dll: dmcommon.dll current code fails load .dll: asm = assembly.loadfrom("commonmedical.dll"); what doing wrong? tried .load, , not see issues name space because works without ilmerging. in advance, craig the obvious answer, change code to: asm = assembly.loadfrom("dmcommon.dll"); you've created new merged assembly file , you're using loadfrom loads using filename.