用于反编译代码的 Visual Studio 或 Resharper 扩展 [英] Visual Studio or Resharper extension to decompile code
问题描述
有谁知道可以反编译程序集并允许您在 Visual Studio 中查看给定类的代码的 Visual Studio 扩展,而不必离开 VS 并使用 ILSpy 或其他外部"反射工具?我知道 Resharper 也有一个反射工具,但如果你能在 VS 中启动它会很好.
Does anyone know of a Visual Studio extension that will decompile assemblies and allows you to view code in Visual Studio for a given class instead of having to leave VS and use ILSpy or other "external" reflection tools? I Know Resharper also has a reflection tool but it would be nice if you could kick it off within VS.
推荐答案
我知道 Resharper 也有一个反射工具,但如果你能在 VS 中启动它会很好.
I Know Resharper also has a reflection tool but it would be nice if you could kick it off within VS.
你可以.将光标放在标识符上,选择 ReSharper |导航 |导航到...
(VS方案中的键盘快捷键是Alt+`),然后选择Decompiled Sources
.
You can. With the cursor on an identifier, choose ReSharper | Navigate | Navigate To...
(the keyboard shortcut in the VS scheme is Alt+`), and choose Decompiled Sources
.
这与独立工具 dotPeek 使用相同的反编译引擎.
This uses the same decompilation engine as dotPeek, the standalone tool.
请注意,在这样的反编译源中,您必须继续使用相同的导航方法来遵循定义,因为 F12 或 Ctrl+click 将返回到对象浏览器.
Note that within such a decompiled source, you must continue to use this same navigation method to follow definitions, as F12 or Ctrl+click will go back to the Object Browser.
这篇关于用于反编译代码的 Visual Studio 或 Resharper 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!