Use dotPeek from within Visual Studio without ReSharper
Asked Answered
S

3

13

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?

Silvester answered 15/2, 2017 at 13:47 Comment(0)
E
8

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.

Eigenvalue answered 15/2, 2017 at 14:31 Comment(1)
Just installed the ILSpy extension in VS 2019. It seems to work well and the ability to right click on a method name and inspect in ILSpy is very useful. It did take a minute for the context menu item to appear... possibly it was fetching debug assemblies?Walleye
G
2

From dotPeek 2019.3.2 at least, an option exists to integrate dotPeek to Visual Studio.

EDIT: I've looked into this option and, what it seems it only do, is that within dotPeek, it allows you to export a dll into a visual studio project. So this does not answer your question, sorry.

Gur answered 18/2, 2020 at 13:10 Comment(0)
D
1

Actually dotPeek integrates with Visual Studio, allowing one to see the decompiled code in the core .net library by pressing F12 (Ctrl+F12).

To achieve this, dotPeek must be configured as a symbol server.

The configuration required is shown in this video:

https://www.youtube.com/watch?v=D7spm6C2j30

Dday answered 5/10, 2022 at 6:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.