5

Possible Duplicate:
A .net disassembler/decompiler
Is there a “free” alternative to .NET Reflector?

A good while ago we wrote C# .NET 1.1 application for a customer and during the process of office moves and redundancies, the source code was not checked into Source Safe.

The customer has now reported an issue and we don't want to rewrite the app from scratch.

I believe we should be able to get the source code by decompiling the executable. Can anyone recommend a good tool to use (preferably a free one).

As we wrote the application in the first place, I don't expect there to be any legal issues with decompiling but please correct me if I'm wrong.

Community
  • 1
  • 1
TeamWild
  • 2,320
  • 7
  • 39
  • 53
  • 5
    Why does it have to be free? It seems that you are saving a lot of money by not having to rewrite the application. You can afford to loose 100 dollar on a tool. – Steven Feb 02 '12 at 10:28
  • 1
    Either way, take a look at RedGate Reflector. It isn't free (anymore), but I'm still using the free 6.0 edition. Not a day goes by that I don't use it. – Steven Feb 02 '12 at 10:29
  • 1
    I don't think decompiling .net 1 is any different from decompiling newer versions of .net. And there are plenty of questions about that. Personally I use ILSpy, but since RedGate's licensing mistake, there are plenty of decompilers. – CodesInChaos Feb 02 '12 at 10:30
  • 2
    You won't get "the source code". You may get *some* source code which will compile to equivalent code. That's not the same thing though - don't expect any comments, and if you've only got the release binary you may not have local variable names etc. – Jon Skeet Feb 02 '12 at 10:30
  • possible duplicate of 2) http://stackoverflow.com/questions/4876347/is-there-a-free-alternative-to-net-reflector 3) http://stackoverflow.com/questions/2646707/something-better-than-net-reflector 4) http://stackoverflow.com/questions/2425973/open-source-alternatives-to-reflector – CodesInChaos Feb 02 '12 at 10:33
  • Thanks for the pointers guys. – TeamWild Feb 02 '12 at 10:38
  • @Steven It has to be a free tool as the company is run by a tight fisted **** who doesn't see the value of software. It would take a month of paperwork before I get told it's not worth the money. Ho Hum. – TeamWild Feb 02 '12 at 10:41
  • 1
    @TeamWild: Time to look for an other employer. Your company is doomed to fail. – Steven Feb 02 '12 at 13:15

2 Answers2

10

I always used .Net Reflector, but now you need to find an old version of it when it was free...

Now you can try one of the following .Net decompiler (listed in no particular order)

Here are also some IL decompiler for the real hardcore developer :-)

You may also find some useful information on these answers:

Community
  • 1
  • 1
Max
  • 6,808
  • 2
  • 24
  • 31
2

try dotpeek

mBotros
  • 1,674
  • 1
  • 19
  • 39