Decompile Partial C # Exe

I support the C # program at work and due to a hard disk failure, I lost a large piece of code for an already deployed version (which is my own mistake, as it is not enough to click on the git repository), and now I have to make some changes to the program. I have the source code of an old version of the program, and I want to decompile exe and combine it with an older source to recover the lost code.

I know that I can decompile tools like a reflector, but I don’t want to combine it with the old code manually, since then I could just copy the changes (about 1-2 days of work). Is this possible or do I need to manually reset the code?

+4
source share
2 answers

I suggest you recompile the old code and decompile it with a reflector.

Then decompile the current executable with a reflector and separate the two. Thus, you will see only those changes that you have made, and you can apply them to your source code, and not just use the difference between the decompiled code and the source code, which, obviously, will cause a huge amount of uninteresting differences (comments for one thing! )

I don’t understand how it would be better, to be honest. Of course, this will be a manual process, but it should still save you time.

+7
source

I had to do this once, I recommend Dis #.

Edit:
ILSpy is much better now

0
source

Source: https://habr.com/ru/post/1335035/


All Articles