I wrote a C# application for a client a couple of years ago, but I no longer have the source code. All I have is the EXE that I deployed on the client's PC. Is there a way I can generate C# source code from the EXE?
+42
A:
Reflector and it's add-in FileDisassembler.
Reflector will allow to see the source code. FileDisassembler will allow you to convert it into a VS solution.
Geoffrey Chetwood
2008-10-07 18:28:00
Your post on FileDisassembler appeared as the page refreshed when I made my answer on FileDisassembler :-) You win.
ProfK
2008-10-07 18:33:45
His Reflector link works, too, which is what took it. Thanks for helping me look less stupid to the client.
MusiGenesis
2008-10-07 18:35:23
@musigenesis: No prob, that is what we are here for... I think...
Geoffrey Chetwood
2008-10-07 18:37:28
My copy of Reflector has an "Export..." option and I have no plug-ins installed. It creates a VS project with all the source code and resources. So why is everyone suggesting FileDisassembler? It is better?
Lucas
2008-10-07 22:10:06
Lucas: Out of the box, I have not seen reflector able to do this. FileDisassembler has always been the only way.This may have changed in recent history though I guess. I will check it out.
Geoffrey Chetwood
2008-10-08 11:49:58
+14
A:
Reflector and the File Disassembler add-in from Denis Bauer. It actually produces source projects from assemblies, where Reflector on its own only displays the disassembled source.
ProfK
2008-10-07 18:32:08
A:
.NET = Open Source. :)
There is also an addin for Reflector that lets you export the DLL or EXE to code file. Don't have the name at hand but there are a couple. I see someone already posted this information
Derek Smyth
2008-10-07 19:46:23