6

I have ReSharper 6.1 and can use the Navigate To > Decompiled Sources command to decompile .NET assemblies for which I do not have source code. This is excellent when I want to take a peek inside an assembly which I have referenced in my code.

Is there a way (as in Reflector and ILSpy) to simply give ReSharper a standalone assembly file and decompile it? I want to take a deployed DLL from a server and view the decompiled code so I can verify it is the version I think it is.

(I am fully aware that the fact I am asking this means our versioning process leaves a lot to be desired, but that's a different topic!)

Sir Crispalot
  • 4,792
  • 1
  • 39
  • 64

2 Answers2

9

You can use the standalone tool dotPeek for this task. It uses the same technology as ReSharper.

Daniel Hilgarth
  • 171,043
  • 40
  • 335
  • 443
  • 2
    I had seen that was available, but assumed that it was simply a subset of the functionality available in ReSharper and that I was failing to find a menu item that would enable me to do it. Clearly that isn't the case! – Sir Crispalot Jan 18 '12 at 11:59
1

Use dotPeek which is a standalone application based on ReSharper decompiling engine (or the other way around, as you like)

Jura Gorohovsky
  • 9,886
  • 40
  • 46
  • 1
    I was even faster then the JetBrains marketing lead. Not bad. Do I get a commission? Hehe... – Daniel Hilgarth Jan 18 '12 at 11:58
  • 1
    I see you work for JetBrains ... is there any reason why this ability isn't built into ReSharper itself? After all, the decompiling engine is all there, surely it would just need some kind of GUI. – Sir Crispalot Jan 18 '12 at 11:58
  • @DanielHilgarth Well done and an upvote from me. It's no problem though to be faster than me as I'm a total slowpoke. – Jura Gorohovsky Jan 18 '12 at 20:17
  • 2
    @SirCrispalot I guess integrating this into VS would be an overkill: VS (and ReSharper) is intended to work with solutions, projects, and references, not with individual files. As far as I know, for use cases like yours, a common solution implies using a standalone decompiler and associating .dll files with it. – Jura Gorohovsky Jan 18 '12 at 20:21