我尝试过:
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文件中?)
谢谢
"C:\Program Files\Microsoft\ILMerge\ILMerge.exe"
(包括引号)-请确保修复路径以匹配您的安装目录。 - Lucero