Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Emile Badenhorst
    @Myvar
    How does your C# interface work ?
    Timotei Dolean
    @timotei
    @MyvarHD What do you mean?
    How it's used?
    You just need to instantiate the ILRepack class and provide the options (either via the IEnumerable<string> parameter args, or manually settings things on RepackOptions)
    Then just call .Repack()
    Emile Badenhorst
    @Myvar
    Nm i figures it out, if there is ever any small tasks you need done let me know i whould be happy to help out
    Paolo Ghibaudo
    @ghiboz
    hi all
    how can I use ilrepack.exe as commandline like ilmerge to pack a .exe and some .dlls?
    Timotei Dolean
    @timotei
    @ghiboz Well, the same way you use ILMerge. Usually it's enough to invoke ILRepack.exe instead of ILMerge.exe since ILRepack maintains the same parameters
    Paolo Ghibaudo
    @ghiboz
    @timotei thanks!! I'll try! :)
    Paolo Ghibaudo
    @ghiboz
    @timotei thanks! it works very fine!!!
    Paolo Ghibaudo
    @ghiboz
    hello all!
    I've got a question:
    I wish merge my .exe with devexpress dll, and if I do this, when I run the program appears this error:
    taht means that a type is present in the dll that I wish pack and my exe....
    the code is this:
    ilrepack.exe /wildcards /parallel /union /copyattrs /allowMultiple /targetplatform:v2 /log:merged\log.txt /out:merged\ReportDesigner.exe ReportDesigner.exe DevExpress*.dll
    thanks in advance
    and that's the log..
    Timotei Dolean
    @timotei
    Does it find the specified type/namespace in the merged assembly? (e.g., if you open it with a decompiler like ILSpy)
    Paolo Ghibaudo
    @ghiboz
    hi!
    I'll try
    Paolo Ghibaudo
    @ghiboz
    yes, it find
    Peter Taylor
    @emersont1
    hi
    josephgardner
    @josephgardner
    Any suggestion on how to debug this error:
    System.ArgumentException: Resources_StreamNotValid
       at ILRepacking.ResReader..ctor(Stream stream)
       at ILRepacking.Steps.ResourcesRepackStep.FixResxResource(AssemblyDefinition containingAssembly, EmbeddedResource er,
    List`1 resourcePrcessors, IEmbeddedResourceProcessor embeddedResourceProcessor)
       at ILRepacking.Steps.ResourcesRepackStep.Perform()
       at ILRepacking.ILRepack.Repack()
       at ILRepacking.Application.Main(String[] args)
    Timotei Dolean
    @timotei
    @josephgardner Do you have the complete log? it looks to me like some... unknown/unhandle-able resource
    If you want to dig into the issue, you could run il-repack with VS + use the same arguments & working dir you use when launching it, and see what's the issue
    Joseph Musser
    @jnm2

    When I specify /keyfile, I get:

    System.ArgumentException: Unable to obtain public key for StrongNameKeyPair.
    at System.Reflection.StrongNameKeyPair.ComputePublicKey()
    at System.Reflection.StrongNameKeyPair.get_PublicKey()
    at ILRepacking.Steps.SigningStep.Perform()
    at ILRepacking.ILRepack.Repack()
    at ILRepacking.Application.Main(String[] args)

    Very much like the same issue with ILMerge which signs properly if run as 32-bit using corflags, but by default gives this:

    An exception occurred during merging:
    An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
    at System.Compiler.Writer.MscorsnStrongNameSignatureGeneration(String wszFilePath, String wszKeyContainer, Byte[] pbKeyBlob, Int32 cbKeyBlob, IntPtr ppbSignatureBlob, IntPtr pcbSignatureBlob)
    at System.Compiler.Writer.WritePE(String location, Boolean writeDebugSymbols, Module module, Boolean delaySign, String keyFileName, String keyName)
    at System.Compiler.Writer.WritePE(CompilerParameters compilerParameters, Module module)
    at ILMerging.ILMerge.Merge()
    at ILMerging.ILMerge.Main(String[] args)