ioncodes / dnpatch

.NET Patcher library using dnlib
MIT License
313 stars 48 forks source link

help with error please #49

Closed fl380 closed 5 years ago

fl380 commented 6 years ago

Sorry to trouble you but I'm getting the following error when saving after a WriteReturnBody:

Unhandled Exception: System.MissingMethodException: Method not found: 'dnlib.DotNet.Writer.MetaDataOptions dnlib.DotNet.Writer.ModuleWriterOptionsBase.get_MetaDataOptions()'. at dnpatch.PatchHelper.Save(String name) at dnpatch.Patcher.Save(String name) at Test_Patcher.Program.Main(String[] args) in E:\Documents\Visual Studio 2017\Test_Patcher\Test_Patcher\Program.cs:line 29

line 29 is p.Save( "test_temp");

I'll be grateful for your assistance please, thanks.

gagmeng commented 5 years ago

Pls attach your code.

fl380 commented 5 years ago

I understand dnlib a bit better now and am using it directly without dnpatch anymore.

Dnpatch was incredibly useful to help me understand dnlib.