Open CreateAndInject opened 10 months ago
Why isn't it aligned?
var module = ModuleDefMD.Load(@"test.exe");
module.NativeWrite("output.exe"); // InvalidOperationException
What's wrong?
I haven't looked at this yet, but if you know how to fix this, you can send a PR.
No idea if alignment is requirement and how the alignment should be.
https://github.com/0xd4d/dnlib/blob/71946df40541d1d97f62e249f3f39036e04e60da/src/DotNet/Writer/Metadata.cs#L3695-L3736
this?