371

I used to love .NET Reflector back in the day, but ever since Red Gate Software took over it has gone downhill dramatically. Now it forces me to update (which is absolutely ridiculous), half the time the update doesn't go smoothly, and it is increasingly hindering my productivity with each update. I am sick of it, and I am ready for something better. Is there a better disassembler?


Update:

List of various alternatives mentioned in answers -

15
  • 5
    The main problem: every time that I need to use it to get out of a jam, it has to update! Apr 16, 2010 at 5:33
  • 159
    +1, Reflector did everything I needed 3 years ago. To date it is the only program I have ever used that disables itself if I don't let it update when it wants to. Redgate have taken a great piece of software and ruined it. It may well be free, but thanks to this obnoxious attitude Redgate have ensured I will not be buying or recommending any of their software again.
    – Ash
    Apr 24, 2010 at 13:00
  • 15
    Looks like this topic just gained some new life, now that RedGate is asking a minimum of $35 for what used to be the free version of Reflector. Sad day...sad day indeed. Hopefully the .NET community can come up with a quality FOSS competitor, and allow us to get away from the (not really so surprising) underhanded betrayal of RedGate.
    – jrista
    Feb 3, 2011 at 17:34
  • 6
    +1 - Red Gate promised not to ruin it but it looks like they have. I don't run it that much and so have to update every time I do. But it doesn't tell me that--it just asks if it should update automatically. When I say 'No', it appears to do nothing. When I say 'Yes', it downloads and decompresses something and then throws up an error the Reflector.exe can't be accessed because it's in use! Feb 5, 2011 at 2:18
  • 75
    To be fair, we can't say Red Gate hasn't done work on the software. I'm using the paid version, and I notice they've done a lot of work to make it much slower than it used to be.
    – Ryan Lundy
    Jun 1, 2011 at 17:38

9 Answers 9

176

Also take a look at ILSpy by SharpDevelop. It's in early stages of development and they just made a release on the 24th of February. That in itself works pretty good for me. From their website:

ILSpy is the open-source .NET assembly browser and decompiler.

Development started after Red Gate announced that the free version of .NET Reflector would cease to exist by end of February 2011.

Update: JetBrains has released dotPeek, its free .NET decompiler.

Update 2: Telerik also has a free decompiler: JustDecompile.

11
  • 2
    Just tried it out. Worked like a charm. Get the binaries at build.sharpdevelop.net/BuildArtefacts/#ILSpy Apr 5, 2011 at 18:02
  • 3
    ILSpy FTW. Does everything I ever needed Reflector to do and does it without timebombing or auto-updating to a new version that works worse than the previous version.
    – Ian Kemp
    May 3, 2011 at 7:11
  • 2
    ILSpy is definitely on par with Reflector. dotPeek takes longer to load and the download size is a bit high. And it uses spaces for indentation instead of tabs (and there's no config option to change)! :D +1 May 31, 2011 at 16:59
  • 1
    Gold goes to ILSpy, silver is for dotPeek and bronze is for JustDecompile.
    – oddy
    Aug 25, 2011 at 21:34
  • 2
    RedGate disappointed me with rather major price hikes and no paypal option. When I first looked it ws £20 for the basic version. Now it's £65 and more than doubles for VS integration. Jan 4, 2013 at 13:13
64

JetBrains is going to add a decompiler to its ReSharper, and release a stand-alone decompiler too.

The good news is that we’re preparing a standalone binary-as-a-source application, i.e. a decompiler + assembly browser to explore whatever .NET compiled code is legal to explore. We don’t have any specific date for release, but it’s going to be released this year, and it’s going to be free of charge. And by saying “free”, we actually mean “free”.

Here is more information.

UPDATE: JetBrains has now released the product called dotPeek and it can be found here.

2
  • 2
    I've just given ReSharper 6 EAP (released March 1, 2011) a whirl. The decompilation is there, works great, and is EXTREMELY convenient since it is integrated right into VS2010. Sounds like a stand-alone FREE version is coming, but for those of you who already use ReSharper, v6 definitely adds decompilation that works great!
    – jrista
    Mar 3, 2011 at 0:11
  • 2
    Update: the free standalone decompiler by JetBrains called dotPeek has been released to early access. May 20, 2011 at 9:50
32

In my opinion, there are three serious alternatives to keep an eye on, all of which are free:

  • ILSpy: This is from the same people who make the (also free) SharpDevelop IDE. As well as being free, it is also open source. An additional extension they are working on is the ability to debug decompiled code (something which the pro version of Reflector can do), which works surprisingly well.
  • JustDecompile: A standalone decompiler from Telerik (announced today, currently in Beta).
  • dotPeek: A standalone decompiler from JetBrains (available standalone as part of an EAP at the moment).

All of these approach the problem in slightly different ways with differing UIs. I would suggest giving them all a try and seeing which one you prefer.

0
14

Some others not mentioned here -

  • Mono Cecil: With Cecil, you can load existing managed assemblies, browse all the contained types, modify them on the fly and save back to the disk the modified assembly.

  • Kaliro: This is a tool for exploring the content of applications built using the Microsoft.Net framework.

  • Dotnet IL Editor (DILE): Dotnet IL Editor (DILE) allows disassembling and debugging .NET 1.0/1.1/2.0/3.0/3.5 applications without source code or .pdb files. It can debug even itself or the assemblies of the .NET Framework on IL level.

  • Common Compiler Infrastructure: Microsoft Research Common Compiler Infrastructure (CCI) is a set of libraries and an application programming interface (API) that supports some of the functionality that is common to compilers and related programming tools. CCI is used primarily by applications that create, modify or analyze .NET portable executable (PE) and debug (PDB) files.

9

The .NET source code is available now.

See this link or this

Or if you look for a decompiler, I was using DisSharper. It was good enough for me.

2
  • Cool. Did anyone find the actual link to the download? Feb 5, 2011 at 2:47
  • 6
    That's for limited areas of the Framework. Definitely not a replacement for a decompiler
    – Camron B
    Feb 23, 2011 at 16:53
6

The latest version from Red Gate is 6.1. However the 5.1 version cannot automatically update to version 6 because there were changes to the Terms of Service, so instead you are redirected to the site to download the 6.1 version. This is mostly because of legal reasons as you can check in the following post:

Oi! What's going on with the .NET Reflector update mechanism?

After you manually update to 6.1 you will no longer experience any problems.

16
  • 6
    If the only solution is to upgrade, then I am looking for a different product. Foot is down :) Apr 28, 2010 at 20:03
  • 6
    Some people are happy with Version X, why should all the updates effect them? This seems to be a common issue with software lately.
    – user117499
    May 10, 2010 at 23:18
  • 4
    @drachenstern: as it turns out the product will no longer be free, well one could expect that when Red Gate took over Reflector. The problem is that Red Gate's products are expensive and they do not have a pricing scheme for individual developers. Now RG says the Reflector will cost 35$ but I think this is just the beginning and it will end up costing much more. The sad thing is that this will decrease the "market" penetration for Reflector which over the years has been sort of a standard tool for .NET devs. Hopefully someone will work on an OSS alternative. Feb 2, 2011 at 18:19
  • 5
    @drachenstern, it's not the price that's the issue. It's the fact that they went back on their word to keep the product free. What else are they going to lie about? The $35 is a "perpetual license", they say...but for how long? Till they miss their quarterly results again and decide to change it?
    – Ryan Lundy
    Feb 2, 2011 at 23:01
  • 3
    @drachenstern: I was aware your comment was months ago, I wanted to point out that what was going on back then kind of fits the whole situation now. I'm not saying RedGate is evil, although in this particular case it should be pointed out that they said they will keep Reflector free. What I tried to say is that 35$ and even 70$ doesn't fit the pricing scheme with the rest of their tools and I'm really worried Reflector will become quite expensive over time. Even though I might buy it, will I will no longer be able to say to my fellow devs: "Hey, just grab Reflector!" Feb 9, 2011 at 13:20
4

Instead of using the autoupdater, we just set the properties of the EXE file to read-only. That way it doesn’t delete the file.

2

I am not sure what you really want here. If you want to see the .NET framework source code, you may try Netmassdownloader. It's free.

If you want to see any assembly's code (not just .NET), you can use ReSharper. Although it's not free.

2
  • 2
    Code? Rather just type definitions, right? Feb 2, 2011 at 18:12
  • you need a big cluster to run resharper, some of us like to code on a laptop )
    – Ivan G.
    May 24, 2016 at 15:30
1

9Rays used to have a decompiler, but I haven't checked in a while. It was not free, I remember...

There is also a new one (at least for me) named Dis#.

Not the answer you're looking for? Browse other questions tagged or ask your own question.