Making a 1 file cmd line .exe application

General discussions about GdPicture.NET.
Post Reply
dan276
Posts: 20
Joined: Fri Mar 15, 2013 1:07 am

Making a 1 file cmd line .exe application

Post by dan276 » Fri May 24, 2013 3:08 am

I'm usually not making command line applications, so I don't have the greatest knowledge about this. So I might not know what I'm talking about.

But it seems when I make my command line pdf to tiff conversion and I put all the DLLs in the directory that my mypgm.exe is in, it works. Now I want to use ILMerge to merge all the dlls into 1 exe. I can't seem to get around that error. Is there a better way to make 1 exe

My command line goes as follows.
C:\dl\aapdf>"c:\Program Files\Microsoft\ILMerge"\ilmerge.exe /targetplatform:v4
,"C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0"
/target:winexe /out:out.exe /allowDup PDFtoLTTiffCmd.exe GdPicture.NET.9.dll GdP
icture.NET.9.PDF.dll GdPicture.NET.9.image.gdimgplug.dll GdPicture.NET.9.filters
.dll GdPicture.NET.9.jbig2.encoder.dll
An exception occurred during merging:
ILMerge.Merge: Could not load assembly from the location 'C:\dl\aapdf\GdPicture.
NET.9.image.gdimgplug.dll'. Skipping and processing rest of arguments.
at ILMerging.ILMerge.Merge()
at ILMerging.ILMerge.Main(String[] args)

dan276
Posts: 20
Joined: Fri Mar 15, 2013 1:07 am

Re: Making a 1 file cmd line .exe application

Post by dan276 » Fri May 24, 2013 8:17 pm

I also tried with a WPF, but my problem is trying to add files like GdPicture.NE.9.image.gdimgplug.dll as a reference in visual studio. It doesn't let me add this file for some reason.

I used this link to try to make 1 wpf exe:
http://blogs.interknowlogy.com/2011/07/ ... ingle-exe/

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest