Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Assembly.CreateInstance returns null after merging assembly using ILMerge

$
0
0

Hi,

I am merging two assemblies which are almost same. that is i have an assembly say xyz.dll and i am renaming this to xyzclone.dll. Now iam merging these two(original and renamed assemblies) using ILMerge and output file is xyzclone. Since both the assemblies contain same info i am using the option /allowdup.so all the type names in the output xyzclone is changed. 

After loading the assembly which i got from ILmerge, the create instance returns null. when i get the exportedtype for that assembly the type exists. But when i use the same type to create instance it is returning null

Note: I am merging the original and renamed dlls as i couldnt find any other method to change the assmbly name of a dll.

Please help


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>