Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ILMerge issue error code 1

Tags:

ilmerge

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
like image 263
Jogn Smith Avatar asked May 31 '26 11:05

Jogn Smith


1 Answers

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.
like image 187
Dan Busha Avatar answered Jun 02 '26 21:06

Dan Busha



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!