从 dll 构建 C# 项目
我可以使用 ILSpy 查看 .NET ddl 中的 C# 代码。是否有任何程序可以从 dll 构建完整的 C# 项目?
PS 我不想将 dll 包含到我现有的项目中。我想从 dll 中获取一些代码并了解它是如何工作的。但直接从反射器读取代码比较困难。我更喜欢从 Visual Studio 读取代码,并希望从 dll 创建“类库”项目。
I can view C# code from .NET ddl's with ILSpy. Are there any programs to build completed C# project from the dll?
P.S. I don't want to include dll to my existing project. I want to grab some code from dll and understand how it works. But it is harder to read code directly from reflector. I prefer to read code from Visual Studio and want to create "Class Library" project from dll.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您正在寻找 Reflector,它可以反编译 DLL 以完成 C# 项目。
It sounds like you're looking for Reflector, which can decompile DLLs to complete C# projects.
如果我理解你的问题是正确的,你可以使用Redgate的.Net Reflector创建一个完整的项目文件,包括来自dll的代码
市场上还有其他免费产品,包括Telerik的JustDecompile我对此不太确定!
话虽如此,当 DLL 包含相当直接的前言代码时,Redgate 的 .Net Reflector 工作正常,但当 DLL 引用许多其他 DLL 时,我确实发现它有问题。
If I understand you question right, You can create a complete project file including the code from a dll using Redgate's .Net Reflector
There are other free products in the market including Telerik's JustDecompile I am not very sure about it!!
Having said that, Redgate's .Net Reflector works fine when the DLL contains code which are fairly straight foreword, I did find it buggy when the DLL are referencing many other DLLs.