adg icon indicating copy to clipboard operation
adg copied to clipboard

Failed to resolve assembly "System.Private.CoreLib ..."

Open almenjonatan opened this issue 3 years ago • 2 comments

I am not sure I am using it as intended.

I dumped the game and tried to "recompile" it, I am using the right mscorlib?

bild

almenjonatan avatar Oct 17 '20 06:10 almenjonatan

First, make sure you're using non-netcore Il2CppDumper. Second, the mscorlib needs to be the mscorlib from the runtime that the generated assemblies should run on. Typically it would be bundled with whatever loader/injector you're using for managed domain.

knah avatar Oct 19 '20 13:10 knah

This could also be resolved just by adding

if (oldAssembly.Name.Name == "System.Private.CoreLib")
{
    return myAssembliesByOld.Single(x => x.Key.Name.Name == "mscorlib").Value;
}

at https://github.com/knah/Il2CppAssemblyUnhollower/blob/master/AssemblyUnhollower/Contexts/RewriteGlobalContext.cs#L62

js6pak avatar Feb 03 '21 17:02 js6pak