.NET Reflector for Mono [closed]
Asked Answered
M

6

19

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)?

Musket answered 14/10, 2009 at 0:15 Comment(0)
S
14

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

Sofiasofie answered 5/3, 2013 at 15:45 Comment(5)
How did you achieve decompiling assemblies directly in MonoDevelop? I can't figure out how to do this.Channing
@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.Sofiasofie
I see the interface in MonoDevelop but NOT the decompiled code.Compeer
@Compeer You have to select the C# language at the top right corner in the assembly navigator.Valentine
Even easier, just "File -> Open" the DLL file in a new MonoDevelop instance and do what @Valentine said. No need to create a project / add as referenceVerney
G
10

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.

Grimbal answered 14/10, 2009 at 0:21 Comment(4)
to my surprise, you're right, it does work on Mac OS X!!! Just do "mono reflector.exe" in terminal!!!Musket
How do you get reflector.exe without Windows? Currently, their download is an installer which doesn't run under mono.Jonasjonathan
@Jonasjonathan Copy it across - old versions were zip deployments...Grimbal
@Reed You're assuming I have a copy of Windows. ;) But yes, I'll try that when I have a chance.Jonasjonathan
C
4

There is a new project called ILSPY that is trying to build an open source version of reflector: http://wiki.sharpdevelop.net/ILSpy.ashx

Cavazos answered 17/3, 2011 at 0:44 Comment(4)
ILSPY works quite well, I have added it to the O2 Platform and am now using it every day (instead of reflector)Cavazos
I 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/).Therm
ILSpy is WPF based, and it cannot run on Mono yet.Fumigate
You can use it as a cli application, see e.g. github.com/andreif/ILSpyMonoGolconda
M
2

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.

Monroy answered 4/4, 2011 at 13:36 Comment(0)
D
2

Mono Cecil. Red-Gate Reflector is totaly based on it. Se this RedGate forum post for more information.

Dissimilitude answered 1/6, 2011 at 11:52 Comment(0)
C
1

reflector 6.0 dose not support Mono,only 5.1.7supports mono.

mono reflector.exe /compat

:)

Catchpole answered 13/4, 2010 at 13:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.