How to use ilMerge to merge dll into an exe file? [duplicate]

邮差的信 提交于 2019-12-06 13:06:58

As you have now copied every thing in the programs folder of ilmerge (which is not wise and was adviced against in the duplicate question) the correct command (from the ilmerge folder) should be:

ilmerge cabalmain.exe crckd.dll /out:%userprofile%\cabalmainmerged.exe

If no errors are shown you can type start %userprofile% and in the explorer window that opens you should find cabalmainmerged.exe

'Could not load assembly ' means that the exe or dll files that you try to merge are not copied to the correct folder. If one of the exe or dll's depend on other assemblys they all have to be in the same folder.

Wiser is to have a folder c:\merge and copy all relevant files in that folder. Then start a commandprompt and

c:

cd\merge

then

"C:\Program Files (x86)\Microsoft\ILMerge\ilmerge" "yourexe.exe" "your1stdll.dll" /out:mergedexe.exe
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!