Is there an equivalent of .NET Reflector for Mono? Quick googling did not find anything... Or can I run Reflector on Mono (say, in Mac OS X)?
6 Answers
As I was looking for a Mono decompiler, I found this page and tested the answers :
- Mono.Cecil works great but it's a library and I was looking for a GUI
- ILSpy doesn't run under Mono (Linux) since it uses WPF. Same for .NET CodeReflect, JustDecompile and dotPeek.
- Perhaps Reflector works, but I don't really want to pay to know
Finally I found it was possible to decompile assemblies directly in MonoDevelop
![](../../users/profiles/1502034.webp)
- 285
- 2
- 13
![](../../users/profiles/517795.webp)
- 5,770
- 4
- 30
- 46
-
3How did you achieve decompiling assemblies directly in MonoDevelop? I can't figure out how to do this. – Apr 18 '13 at 07:45
-
7@Micah Delane Bolen, this surely deserves its own question, but I will be generous this time :) Add your dll file as a reference to your project. Then double-click on the reference and TADAM the awesome MonoDevelop will show you the decompiled code. – Nicolas Apr 18 '13 at 21:01
-
3I see the interface in MonoDevelop but NOT the decompiled code. – user430788 Aug 03 '14 at 16:57
-
1@user430788 You have to select the C# language at the top right corner in the assembly navigator. – antoyo Feb 09 '16 at 19:18
-
Even easier, just "File -> Open" the DLL file in a new MonoDevelop instance and do what @antoyo said. No need to create a project / add as reference – Omer Tuchfeld Oct 16 '20 at 11:06
Reflector works fine on Mono (at in older versions), provided you turn off the "Show PDB symbols" option.
Miguel de Icaza blogged about this at one point.
![](../../users/profiles/65358.webp)
- 522,342
- 70
- 1,092
- 1,340
-
to my surprise, you're right, it does work on Mac OS X!!! Just do "mono reflector.exe" in terminal!!! – zvolkov Oct 14 '09 at 00:28
-
How do you get reflector.exe without Windows? Currently, their download is an installer which doesn't run under mono. – Eliot Aug 21 '14 at 18:55
-
-
@Reed You're assuming I have a copy of Windows. ;) But yes, I'll try that when I have a chance. – Eliot Aug 27 '14 at 20:08
There is a new project called ILSPY that is trying to build an open source version of reflector: http://wiki.sharpdevelop.net/ILSpy.ashx
![](../../users/profiles/262379.webp)
- 3,753
- 2
- 26
- 46
-
ILSPY works quite well, I have added it to the O2 Platform and am now using it every day (instead of reflector) – Dinis Cruz Mar 24 '11 at 13:21
-
2I tried IlSpy, but it tells me the same as Reflector ** (ILSpy.exe:10897): WARNING **: The following assembly referenced from ****/ilSpy/ILSpy.exe could not be loaded: Assembly: PresentationFramework (assemblyref_index=5) Version: 4.0.0.0 Public Key: 31bf3856ad364e35 The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (****/ilSpy/). – Arne Oct 30 '11 at 21:47
-
-
You can use it as a cli application, see e.g. https://github.com/andreif/ILSpyMono – Andrei Apr 23 '16 at 12:35
Have any one tried 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; potentially might even be more powerful than Reflector!
I am about to review it.
![](../../users/profiles/586756.webp)
- 71
- 1
- 6
Mono Cecil. Red-Gate Reflector is totaly based on it. Se this RedGate forum post for more information.
![](../../users/profiles/393098.webp)
- 31
- 2
reflector 6.0 dose not support Mono,only 5.1.7supports mono.
mono reflector.exe /compat
:)
![](../../users/profiles/189961.webp)
- 1,364
- 10
- 13