You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running into System.InvalidOperationException when building #400
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.
Activity
KirillOsenkov commentedon Apr 25, 2025
We probably don't support merging private implementation details, which is a special type generated by the compiler