ILMerge is not working
-
Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)
-
Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)
It looks like it is mis-reading the "C:\Program Files" path as two separate paths, even though you have it in double quotes. You could try using a relative path to that directory to avoid the two-word path name, something like:
ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,..\..\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
Note: I'm not sure about that comma in front of the last path.
-
It looks like it is mis-reading the "C:\Program Files" path as two separate paths, even though you have it in double quotes. You could try using a relative path to that directory to avoid the two-word path name, something like:
ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,..\..\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0
Note: I'm not sure about that comma in front of the last path.
Thanks Richard MacCutchan, still I am getting the same errors.
-
Thanks Richard MacCutchan, still I am getting the same errors.
-
There is a contact email on http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx[^] which may be worth trying.
Thanks Richard..:)
-
Hi I am giving target type as exe and output file name also has extension exe but erro i am getting: C:\Program Files\Microsoft\ILMerge>ilmerge /target:exe /out:myoutput.exe Utility.exe FeCom.dll /ndebug /xmldocs /targetplatform:v4 ,"%ProgramFiles%\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0" An exception occurred during merging: ILMerge.Merge: /target specified as an executable, but output file, 'C:\Program' , does not have a .exe extension. at ILMerging.ILMerge.Merge() at ILMerging.ILMerge.Main(String[] args)
Perhaps the comma before "%ProgramFiles%... is causing an issue?