本文介绍了ILMerge - 命令退出与code 255的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图嵌入使用ILMerge单一的可执行的DLL。
I'm trying to embed DLLs in single executable using ILMerge.
我在建事件添加了此命令行>后生成事件命令行:
I added this command line in build events > post build event command line:
C:\Program Files\Microsoft\ILMerge\ILMerge.exe /out:$(TargetDir)Publish.exe
($TargetDir)foo.dll
但是当我尝试运行它,我得到以下错误:
but when I try to run it, I get the following error:
命令C:\ Program Files文件\微软\ ILMerge \ ILMerge.exe /out:C:\Publish.exe ($ TARGETDIR)foo.dll退出,code 255
我怎样才能解决这个问题?
how can I fix this?
推荐答案
综观错误信息,我觉得
($TargetDir)foo.dll
应
$(TargetDir)foo.dll
这篇关于ILMerge - 命令退出与code 255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!