il-repack
il-repack copied to clipboard
ERROR: Failed to load assembly while merging .NET Core assembly
I am using ILRepack v 2.0.15 to merge netstandard assemblies, that works on win but on ubuntu (after working around some other errors) I get this error message:
INFO: Adding assembly for merge: MY_ASSEMBLY_PATH_HERE
ERROR: Failed to load assembly MY_ASSEMBLY_PATH_HERE
System.NotSupportedException: Specified method is not supported.
at Mono.Cecil.PE.ImageReader.ReadArchitecture () [0x0003b] in <88d631be1f054e50bcc15e9b957f0686>:0
at Mono.Cecil.PE.ImageReader.ReadImage () [0x00053] in <88d631be1f054e50bcc15e9b957f0686>:0
at Mono.Cecil.PE.ImageReader.ReadImageFrom (System.IO.Stream stream) [0x00006] in <88d631be1f054e50bcc15e9b957f0686>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.IO.Stream stream, Mono.Cecil.ReaderParameters parameters) [0x00022] in <88d631be1f054e50bcc15e9b957f0686>:0
at Mono.Cecil.ModuleDefinition.ReadModule (System.String fileName, Mono.Cecil.ReaderParameters parameters) [0x0000a] in <88d631be1f054e50bcc15e9b957f0686>:0
at Mono.Cecil.BaseAssemblyResolver.GetAssembly (System.String file, Mono.Cecil.ReaderParameters parameters) [0x0000f] in <88d631be1f054e50bcc15e9b957f0686>:0
It looks like it might be related to the Mono.Cecil issue https://github.com/jbevain/cecil/issues/337 that has been fixed about a year ago. Is this fix included to 2.0.15 version of ILRepack?
Nope it's not ! We're still on 0.9, a merge to 0.10 is long overdue.
The latest version should work fine now hopefully.