Software like DotPeek to decompile and edit DLL's?

Anton Nel picture Anton Nel · Mar 21, 2016 · Viewed 24k times · Source

Sorry for this newbie question, but after 3 hours of banging my head on a wall I just got DotPeek and I found it is PERFECT for looking into .dll files. However I can't edit them at all. Is there free software like DotPeek that also lets me edit the DLL instead of just looking at it?

UPDATE: I was able to save all the .cs files in the .dll file separately and edit them in VS (Visual Studio). Now how do I get them back into the .dll file after editing?

THANK YOU!

Answer

Salman von Abbas picture Salman von Abbas · May 17, 2016

Simpler method: You can use dnSpy to edit a managed DLL's bytecode directly using the right click -> "Edit IL instructions" option and save the DLL back from File -> Save Module.

dnSpy: Edit IL Instructions