Hi Kyle, Cecil doesn't guarantee that the assembly will be laid out byte to byte the same as the original.
It does try to make sure that the logical content is the same though ;) Jb On Wed, Nov 26, 2014 at 3:30 AM, Kyle Chen <[email protected]> wrote: > I'm trying to reweave an Unity C# dll. But I found event I do nothing. The > dll Mono.Cecil wrote is different with the original one. > > Here is my test code > > AssemblyDefinition assembly = > AssemblyDefinition.ReadAssembly(@"E:\vd\fishrun_apk\assets\bin\Data\Managed\Assembly-CSharp.dll.dll"); > > assembly.Write(@"E:\vd\fishrun_apk\assets\bin\Data\Managed\Assembly-CSharp.dll.dll.new"); > > Assembly-CSharp.dll.dll.new and Assembly-CSharp.dll.dll have different size? > Could somebody tell me why? > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
