How to use ilMerge to merge dll’s into an exe file?

对着背影说爱祢 提交于 2019-12-04 18:09:55

问题


I tried:

C:\Windows\System32>ilmerge /target:winexe /out:c:\output.exe c:\MyProgram.exe c:\Microsoft.WindowsAPICodePack.dll

But got:

'ilmerge' is not recognized as an internal or external command, operable program or batch file.

What am I doing wrong? (And by the way, is there a better way to merge dll’s into an exe file?)

Thanks


回答1:


This is not a programming question... but you need to install ILMERGE and make sure that it is either in the path or that you fully reference the path. ILMERGE is not a built-in command that you can just use...

As for alternatives, you could embed them as embedded resources and load them on demand from there. Jeffrey Richter wrote how to do just that.



来源:https://stackoverflow.com/questions/7056486/how-to-use-ilmerge-to-merge-dll-s-into-an-exe-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!