Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: Failed to load assembly while merging .NET Core assembly #230

Open
guryanovev opened this issue May 22, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@guryanovev
Copy link

commented May 22, 2018

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 jbevain/cecil#337 that has been fixed about a year ago. Is this fix included to 2.0.15 version of ILRepack?

@gluck

This comment has been minimized.

Copy link
Owner

commented May 22, 2018

Nope it's not ! We're still on 0.9, a merge to 0.10 is long overdue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.