gluck / il-repack

Open-source alternative to ILMerge
Apache License 2.0
1.16k stars 214 forks source link

Mixed assembly, use /zeropekind still raise Writing mixed-mode assemblies is not supported #324

Closed alexis-idigo closed 1 year ago

alexis-idigo commented 1 year ago

Expected behavior, similar to ILMerge would be to just skip the extra data.

Instead we got: System.NotSupportedException: Writing mixed-mode assemblies is not supported at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters) at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters) at ILRepacking.ILRepack.Repack() at ILRepacking.Application.Main(String[] args)

alexis-idigo commented 1 year ago

Note: it actually works provided the /zeropekind is set before mixed assembly path is provided ;-)