ILMerge issue error code 1

送分小仙女□ 提交于 2019-12-10 19:55:16

问题


I was made aware that ilmerge is a console application but when I run it, it runs for one second then closes. So below is the pre-build code I'm trying to use and it's giving this issue.

Error   1   The command "ilmerge /out:F:\Users\Tom\Desktop\New folder\project\bin\Release\SkypePWN4G-1.5.5.0.exe F:\Users\Tom\Desktop\New folder\project\bin\Release\SkypePWN4G-1.5.5.0.exe F:\Users\Tom\Desktop\New folder\project\bin\Release\JSNet.dll F:\Users\Tom\Desktop\New folder\project\bin\Release\NAudio.dll" exited with code 1.   Pwnage

Pre-build code:

ilmerge /out:$(TargetDir)SkypePWN4G-1.5.5.0.exe $(TargetPath) $(TargetDir)JSNet.dll $(TargetDir)NAudio.dll

回答1:


Here are a couple of suggestions:

  1. Run ILMerge with the /log flag for more information
  2. If you are running this as part of your build process, I believe your build actions should be post build actions, not pre-build actions
  3. Try another tool like Costura. Costura has the added benefit of being able to merge dlls into WPF applications.


来源:https://stackoverflow.com/questions/10130379/ilmerge-issue-error-code-1

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