This project is read-only.

cannot merge .NET 4.6 with ILMerge


When I try using it it gives error of cannot merge .NET 4.6 with ILMerge

file attachments


algendy wrote May 14, 2015 at 6:21 PM

cannot merge .NET 4.6 with ILMerge

beatngu wrote May 27, 2015 at 10:20 AM

Any news on this problem?
I would like to use ilmerger again but due to the .net 4.6 it is impossible.

Dtaggart wrote Jul 23, 2015 at 12:29 AM

If it is possible try uninstalling the 4.6 framework from your machine if it is not necessary for you to have it.

jiten1310 wrote Aug 5, 2015 at 7:25 AM

I tried to resolve issue in code.
Updated line no 1134 on frmmain.cs

if (Engine == Merger.ILMerge && framework.version.Major == 4 && (framework.version.Minor == 5 || framework.version.Minor == 6))

Seems it worked for this issue for quick fix.
Hope new release will have proper fix for this in future. Till then i can use this custom build.

wvd_vegt wrote Aug 26, 2015 at 2:46 PM

Excuses for the delay (been very busy with other things and did not have .net 4.6 installed until recently).

The fix seems ok as far as I can tell as 4.6 is yet again an in-place update for 4.0. I will do som testing and update the tool (can't re-compile now due to a missing signing key).

Alternatively you could unzip the attached archive into the ILMergeGUI's installation directory (if it's click-once installed you can find it by starting ILMergeGUI and open it's file location by selecting and right-clicking ILMergeGUI in the task manager. The archive adds support for mono based ILRepack.