3

Is there a convenient method or tool available which will do the following for me from within visual studio 2010.

Fire up ILDasm Load a current assembly from within Visual Studio within ILDasm.

As opposed to me firing up a visual studio command prompt Fire up Ildasm navigating to the bin folder of the assembly I wish to view.

If there isn't something available to do this are there any tools out there which would help?

Cheers

Guilherme Fidelis
  • 1,022
  • 11
  • 20

3 Answers3

2

I think you can do this using Tools>External Tools. Setup the necessary parameters for ILDasm.

A brief tutorial may be found here.

Travis
  • 1,044
  • 1
  • 17
  • 36
jfs
  • 16,758
  • 13
  • 62
  • 88
1

You can get a copy of TestDriven.Net which will provide that sort of dialog for opening up Reflector.

If you really need ILDasm (and yes, there are good reasons for that too) from the context menu I guess you'll need to write that yourself.

Johannes Rudolph
  • 35,298
  • 14
  • 114
  • 172
  • Looks like Reflector Pro does the same integration (not sure when they did it or whether its restricted to the Pro Ed) – Ruben Bartelink Oct 29 '10 at 15:48
  • 1
    @Ruben: Looks like they have it in the free ed too http://www.red-gate.com/products/reflector/features.htm. Now it gets messy, TD.NET does Reflector integration, NDepend does it and Reflector itself. Which one am I using? Hell I don't know :-) – Johannes Rudolph Oct 29 '10 at 20:01
1

Reflector can be plugged into Visual Studio. Also it supports multiple languages, not only IL.

Update: Resharper 6 also supports built in decompiler.

Andrew Bezzub
  • 15,744
  • 7
  • 51
  • 73
  • Can I view the CIL using reflector? My understanding is it shows you the source C# code or language specific code? –  Oct 29 '10 at 12:58
  • Ahh found it in the dropdown in reflector. Cheers for that! –  Oct 29 '10 at 13:06
  • Going to go with this as the answer. Was not aware of the built in ILDasm disassembler. Thanks again! –  Oct 29 '10 at 13:12