Skip to content

Running into System.InvalidOperationException when building #400

@danielgruethling

Description

@danielgruethling

Going of the history here: kekyo/ILRepack.FullAuto#16

I am trying to merge a library dll which is referencing Il2Cpp binaries created through melonloader with two other dlls which do not share anything with this dll but keep running into:

ERROR: Duplicate type Il2Cpp._PrivateImplementationDetails_ CONSOLE: System.InvalidOperationException: Duplicate type Il2Cpp._PrivateImplementationDetails_ from Il2CppAmplifyImpostors.dll, was also present in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null CONSOLE: at ILRepacking.RepackImporter.Import(TypeDefinition type, Collection1 col, Boolean internalize) CONSOLE: at ILRepacking.Steps.TypesRepackStep.RepackTypes() CONSOLE: at ILRepacking.Steps.TypesRepackStep.Perform() CONSOLE: at ILRepacking.ILRepack.RepackCore(String tempOutputDirectory) CONSOLE: at ILRepacking.ILRepack.Repack() CONSOLE: at ILRepack.Lib.MSBuild.Task.ILRepack.Execute() 0>ILRepack.Lib.MSBuild.Task.targets(16,9): Error : Duplicate type Il2Cpp._PrivateImplementationDetails_ from Il2CppAmplifyImpostors.dll, was also present in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

This also happens when I try to only merge my one library with nothing else.

I thought it could be a problem with my setup but using the fullauto package which wraps this one did produce another issue as can be seen in the issue linked above.

Could it be that I can't merge any dlls containing Il2Cpp references?

Here is my repo, but building it is kind of a hassle as you'll need the games assemblies which I don't want to upload into the git. So you would have to dump them with melonloader and thus own the game.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions