开发者

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

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 comman开发者_C百科d, 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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜