Mohd Malaka Weblog

About anything….

  • Welcome


    Welcome to my Weblog. Here I post about anything, mainly about programming. Enjoy

  • Archives

  • Flickr Photos

    Dublin





    Dublin Buildings

    In Dublin Zoo

    More Photos
  •  

    July 2008
    M T W T F S S
    « Jun   Aug »
     123456
    78910111213
    14151617181920
    21222324252627
    28293031  
  • free counters

Retrieve C# code out of EXE Assembly

Posted by malakablog on July 31, 2008

I lost some of my applications code coz of PC format, one of these applications is a C# Console Application, I managed to get the exe output of this application but I was not able to retrieve the code files so I used (.NET Reflector) to do this:

 

1-     Download the .NET Reflector.

 

2-     Download the Reflector.FileDisassembler.

 

3-     Extract the .Net Reflector

 

4-     Extract the Reflecter.FileDisaembler

 

5-     Copy the Reflector.FileDisassembler.dll to the .Net Relector Folder

 

6-     Start Relector.EXE

 

7-     From the View menu select Add-Ins

 

 

8-     In the Add-Ins Screen select Add and select Reflector.FileDisassembler.dll then close the Add-Ins screen

 

 

9-     From File menu select Open and select the exe file you want to retrieve its code

 

 

10- The reflector will load the file Assembly in the Assemblies section

 

 

11- Select the required file and from the Tools menu select File Disassembler

 

null

 

12- Click Generate and you will get your code

 

null

 

 Finally I would like to thank Siderite for his help

9 Responses to “Retrieve C# code out of EXE Assembly”

  1. vipin gangwar said

    hi,
    Is it working for all the dlls and exes like exe of C#

  2. malakablog said

    Hi

    I used it for exe of C# application and it worked very well with me

  3. Ramesh said

    This is a really great useful article and it is working fine. Thank you very much for publishing this article.

  4. sree said

    Hi,
    Thanks for taking time to put the page together with detailed instructions and screenshots of how to use the tools. Great Help!!! I was so frustrated when I lost my source code due to HD crash. This saved me lot of rework.

    Thanks
    Sree

  5. sree said

    Hai…… I lost my aspx.cs code. All I have now is sln file and dll files. Can I retrieve my code using above method.

  6. malakablog said

    Hi I do not think it will work… it will only return back to you the source of the dll files.. Let us know if it worked for the aspx pages

  7. Vincent said

    Hi! This article saved my life!!! Thank you very much, I don’t know what could I have done whithout this guide (oh yeah, could have worked another month to recreate everything). So all in all, you’re the best! :)

  8. sophia said

    You are my hero. I just accident overwrite my source code by source safe. Luckily still got compiled dll.

    You saved my day. Thanks.

  9. Wrox said

    This so awsome, saved a lot of time :) You are rocking buddy

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>