是否有工具可以在 Visual Studio 中选择某些代码并让它显示相应的 MSIL?
最近,我发现自己不断运行 ILDASM 来研究程序的 MSIL 输出。
有没有任何实用程序可以简化此操作? 理想情况下,最好选择一些源代码并让它编译、反汇编并在 MSIL 中发出所选的 C# 代码。
有人知道这样的事情吗?
Lately I've found myself constantly running ILDASM to study the MSIL output of my programs.
Are there any utilities to streamline this? Ideally, it would be nice to select some source code and have it compile, disassemble and emit the selected C# code in MSIL.
Anyone know of such a thing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
.NET Reflector
我认为RedGate 现在已经购买了该工具的 IP。 我相当确定有一个 VS 插件集成到它中,允许您从
运行它。网络反射器插件
(来源:mutantdesign.co.uk)
.NET Reflector
I think that RedGate have bought the IP to this tool now. I'm fairly sure that there is a VS plugin which integrates to it to allow you to run this from vs.
.Net Reflector Plugin
(source: mutantdesign.co.uk)
您可以使用 testdriven.net 一个很棒的单元测试插件,它使您能够右键单击任何成员并在反射镜中查看它。
You could use testdriven.net an awesome unit testing plugin that gives you the ability to right click on any member and view it in reflector.
在 Reflector 中打开 .dll,选择任意类中的任意函数,然后选择 IL 作为反编译语言。 我不认为您正在寻找比这更细粒度的级别。
Open the .dll in reflector, select any function in any class, and select IL as the language to decompile to. I don't think you're looking for a level more granular than that.