C# 如何反编译在 VS.net 中创建的 .dll 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1503943/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 18:13:25  来源:igfitidea点击:

How to decompile a .dll file created in VS.net

c#dll

提问by Himadri

I need to decompile a dll file created in VS.net.

我需要反编译一个在 VS.net 中创建的 dll 文件。

Is there any tool available to do this?

有没有可用的工具来做到这一点?

Or Can I have some code to do this?

或者我可以有一些代码来做到这一点吗?

Please help.

请帮忙。

采纳答案by Preet Sangha

ILDASMis your friend. But Reflectoris a soulmate

ILDASM是您的朋友。但Reflector是灵魂伴侣

Edit: Now that Reflector is no longer a free tool, a newer tool ILSpyis under development.

编辑:现在 Reflector 不再是一个免费工具,一个更新的工具ILSpy正在开发中。

回答by Frederik Gheysels

Check out Reflector.

查看反射器

回答by Mike Dinescu

RedGate has a good tool and it wasfree: .NET Reflector

RedGate 有一个很好的工具,而且免费的: .NET Reflector

Or you could use MS's ILDAsm (also free)

或者你可以使用 MS 的 ILDAsm(也是免费的)

回答by Quibblesome

With Reflector check the file disassembler plugintoo if you want to extract source.

如果您想提取源代码,请使用 Reflector 检查文件反汇编插件

回答by intersum

I tried .NET Reflector and wasn't fully happy of the quality of decompiled code. Then I came across dotPeekand I must say it's way better then Reflector. I had to make only one small adjustement and decompiled code works as it should after compiling it in Visual Studio. I really recommend this decompiler especially it's completely free of charge.

我尝试了 .NET Reflector,但对反编译代码的质量并不完全满意。然后我遇到了dotPeek,我必须说它比 Reflector 好得多。在 Visual Studio 中编译后,我只需要进行一个小的调整,反编译的代码就可以正常工作。我真的推荐这个反编译器,特别是它是完全免费的。

回答by Spider

Jet Brains dotPeek.net decompiler is awesome. also it is free to use

Jet Brains dotPeek.net 反编译器很棒。也可以免费使用