与 Visual Studio 集成的最佳(免费?)C# 反编译器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/214764/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Best (free?) decompiler for C# with Visual Studio integration?
提问by Soraz
In my Java development I have had great benefit from the Jad/JadClipsedecompiler. It made it possible to knowwhy a third-party library failed rather than the usual guesswork.
在我的 Java 开发中,我从Jad/JadClipse反编译器中受益匪浅。它使得知道为什么第三方库失败而不是通常的猜测成为可能。
I am looking for a similar setup for C# and Visual Studio. That is, a setup where I can point to any class or variable in my code and get a code view for that particular class.
我正在为 C# 和 Visual Studio 寻找类似的设置。也就是说,我可以在我的代码中指向任何类或变量并获取该特定类的代码视图的设置。
What is the best setup for this? I want to be able to use the usual "jump to declaration/implementation" that I use to navigate my own code. It doesn't haveto be free, but it would be a bonus if it was.
什么是最好的设置?我希望能够使用通常的“跳转到声明/实现”来导航我自己的代码。它不具有自由,但是这将是一个奖金如果是。
It should support Visual Studio 2008 or Visual Studio 2005 and .NET 2 and 3(.5).
它应该支持 Visual Studio 2008 或 Visual Studio 2005 和 .NET 2 和 3(.5)。
采纳答案by splattne
Here is a good article about Reflector and how to integrate Reflector into Visual Studio.
这是一篇关于Reflector 以及如何将 Reflector 集成到 Visual Studio的好文章。
Of particular interest is the Reflector.VisualStudio Add-In. This add-in, created by Jaime Cansdale, allows for Reflector to be hosted within Visual Studio. With this add-in, you can have Reflector integrated within the Visual Studio environment.
To get started, you will need to have the latest version of Reflector on your machine. Once you have downloaded Reflector, download the latest version of the Reflector.VisualStudio Add-In from http://www.testdriven.NET/reflector. The download contains a number of files that need to be placed in the same directory as Reflector.exe. To install the add-in, drop to the command line and run:Reflector.VisualStudio.exe /install
After the add-in has been installed, you can start using Reflector from Visual Studio. You'll notice a new menu item, Addins, which has a menu option titled Reflector. This option, when selected, displays the Reflector window, which can be docked in the IDE. Additionally, the add-in provides context menu support.
When you right-click in an open code file in Visual Studio, you'll see a Reflector menu item that expands into a submenu with options to disassemble the code into C# or Visual Basic, display the call graph or callee graph, and other related choices. The context menu also includes a Synchronize with Reflector menu item that, when clicked, syncs the object browser tree in the Reflector window with the current code file.
特别感兴趣的是 Reflector.VisualStudio 插件。这个由 Jaime Cansdale 创建的插件允许在 Visual Studio 中托管 Reflector。使用此加载项,您可以将 Reflector 集成到 Visual Studio 环境中。
首先,您需要在您的机器上安装最新版本的 Reflector。下载 Reflector 后,请从http://www.testdriven.NET/reflector下载最新版本的 Reflector.VisualStudio Add-In 。下载中包含许多需要与 Reflector.exe 放在同一目录中的文件。要安装加载项,请移至命令行并运行:Reflector.VisualStudio.exe /install
安装加载项后,您可以开始使用 Visual Studio 中的 Reflector。您会注意到一个新的菜单项 Addins,它有一个名为 Reflector 的菜单选项。选中此选项后,将显示可以停靠在 IDE 中的 Reflector 窗口。此外,该插件还提供上下文菜单支持。
当您在 Visual Studio 中右键单击打开的代码文件时,您将看到一个 Reflector 菜单项,该菜单项扩展为一个子菜单,其中包含将代码反汇编为 C# 或 Visual Basic、显示调用图或被调用图以及其他相关选项的选项选择。上下文菜单还包括一个 Synchronize with Reflector 菜单项,单击该菜单项时,会将 Reflector 窗口中的对象浏览器树与当前代码文件同步。
回答by Khoth
回答by splattne
Remotesoft's Salamander .NET decompilerdoesn't integrate in Visual Studio, but it can generate Visual Studio .NET project filesfor easy recompilation. It's not free.
Remotesoft 的Salamander .NET 反编译器没有集成在 Visual Studio 中,但它可以生成 Visual Studio .NET 项目文件以便于重新编译。它不是免费的。
回答by Marc Gravell
You can attach .NET Reflector to Visual Studio by simply using "Open with" on the DLL/EXE in the bin
folder, and choosing Reflector (and set as default). Also, many tools (such as TestDriven.NETif I recall, and possibly ReSharper) provide a level of .NET Reflector integration.
您只需在bin
文件夹中的 DLL/EXE 上使用“打开方式”并选择 Reflector(并设置为默认值),即可将 .NET Reflector 附加到 Visual Studio 。此外,许多工具(如我记得的TestDriven.NET,可能还有 ReSharper)提供了 .NET Reflector 集成级别。
回答by Joel Mueller
The Scout pluginintegrates Reflector with ReSharper, if you happen to use that tool.
在侦察员插件集成反光ReSharper的,如果你碰巧使用该工具。
回答by Jura Gorohovsky
ReSharper 6 (currently available for early access) supports decompiling in Visual Studio, with the entire ReSharper's navigation feature pack applicable to decompiled code. We have blogged about thissome time ago.
ReSharper 6(目前可用于抢先体验)支持在 Visual Studio 中进行反编译,整个 ReSharper 的导航功能包适用于反编译代码。前段时间我们已经在博客上讨论过这个问题。
回答by kervin
Try the open-source software http://ilspy.net/
试试开源软件http://ilspy.net/