Use dotPeek from within Visual Studio without ReSharper

Tim Pohlmann picture Tim Pohlmann · Feb 15, 2017 · Viewed 8.2k times · Source

dotPeek is a free .NET decompiler. While being a standalone tool, it is also part of ReSharper: If you tell ReSharper to navigate to the definition of a class which is located in a .dll file, it will automatically decompile the file and present you the source code.

I don't want to use ReSharper. Can I get the same or a similar functionality without ReSharper or is this a ReSharper-only feature?

Answer

Jason Evans picture Jason Evans · Feb 15, 2017

With dotPeek, I haven't found a way of integrating it into Visual Studio, so that you can view the decompiled source of some code. There is an option to add dotPeek to the right-click menu in Windows Explorer, so you can click on a DLL file and open it in dotPeek, but it's not the same experience as inline within Visual Studio.

Apparently ILSpy does have an addin which hooks into Visual Studio, though I've not used that addin myself. ILSpy is a fantastic alternative.