如何使用ilMerge将dll合并到exe文件中?
我尝试过:
C:\Windows\System32>ilmerge /target:winexe /out:c:\output.exe c:\MyProgram.exe c:\Microsoft.WindowsAPICodePack.dll
但得到:
'ilmerge' is not recognized as an internal or external command, operable program or batch file.
我做错了什么? (顺便问一下,有没有更好的方法将dll合并到exe文件中?)
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这不是一个编程问题...但您需要安装 ILMERGE 并确保它位于路径中或者您完全引用了该路径。 ILMERGE 不是您可以直接使用的内置命令...
至于替代方案,您可以将它们嵌入为嵌入式资源,并从那里按需加载它们。 Jeffrey Richter 写了如何做到这一点。
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.