knah / Il2CppAssemblyUnhollower

A tool to generate Managed->IL2CPP proxy assemblies
GNU Lesser General Public License v3.0
499 stars 88 forks source link

Failed to resolve assembly: '__Generated, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null' #96

Open krulci opened 1 year ago

krulci commented 1 year ago
--input="C:\DummyDll" --output="C:\output"  --system-libs="C:\BepInEx_UnityIL2CPP_x64_6.0.0-pre.1\mono\Managed"
Done in 00:00:00.1385358
Reading system assemblies...
Done in 00:00:00.0303080
Creating rewrite assemblies...
Done in 00:00:00.0137712
Computing renames...
Done in 00:00:00.0855504
Creating typedefs...
Done in 00:00:00.1092134
Computing struct blittability...
Done in 00:00:00.0075638
Filling typedefs...

Unhandled Exception: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: '__Generated, Version=3.7.1.6, Culture=neutral, PublicKeyToken=null'
   at Mono.Cecil.BaseAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
   at Mono.Cecil.DefaultAssemblyResolver.Resolve(AssemblyNameReference name)
   at Mono.Cecil.MetadataResolver.Resolve(TypeReference type)
   at Mono.Cecil.TypeReference.Resolve()
   at AssemblyUnhollower.Contexts.AssemblyRewriteContext.RewriteTypeRef(TypeReference typeRef) in C:\Users\_\Source\Repos\Il2CppAssemblyUnhollower\AssemblyUnhollower\Contexts\AssemblyRewriteContext.cs:line 112
   at AssemblyUnhollower.Passes.Pass12FillTypedefs.DoPass(RewriteGlobalContext context) in C:\Users\_\Source\Repos\Il2CppAssemblyUnhollower\AssemblyUnhollower\Passes\Pass12FillTypedefs.cs:line 36
   at AssemblyUnhollower.Program.Main(UnhollowerOptions options) in C:\Users\_\Source\Repos\Il2CppAssemblyUnhollower\AssemblyUnhollower\Program.cs:line 231
   at AssemblyUnhollower.Program.Main(String[] args) in C:\Users\_\Source\Repos\Il2CppAssemblyUnhollower\AssemblyUnhollower\Program.cs:line 170

C:\Users\_\Source\Repos\Il2CppAssemblyUnhollower\AssemblyUnhollower\bin\Debug\net4.7.2\AssemblyUnhollower.exe (process 23788) exited with code 0.
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .
karaok1 commented 9 months ago

I have the same error. Unity version: 2022.3.8f1

cocoon commented 7 months ago

try to copy "Generated" as "Generated.dll"