编译&解压缩dll文件 [英] Compiling & Decompiling dll files

查看:217
本文介绍了编译&解压缩dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.dll文件,我已经用Reflector7.4.1软件反编译,以获取源代码。反编译后,令我惊讶的是,我有一个文件夹,而不是一个源代码文件。该文件夹包含一堆其他文件和子文件夹与文件。



我已经确定在其中我必须修改代码的文件。但问题是,在我修改了唯一的1个文件后,如何编译整个文件夹和子文件夹以及其他许多我还没有编辑的文件到一个文件。 dll文件就像以前一样?

解决方案

你不应该重新编译反编译代码,因为编译过程不是完全可逆的,即使.NET二进制文件您可能需要许多缺失的库,库中的不匹配等。我建议使用某种.NET程序集编辑器反编译然后修补DLL。



<一个href =http://reflexil.net =nofollow> Reflexil 是您应该检查的一个。



你也应该明白。 NET反汇编,了解如何从反编译的源代码和二进制文件中来回移动,以便您准确了解要更改的内容。


I have a .dll file which I've decompiled with the software called "Reflector7.4.1" to get the source code. After decompiling, to my surprise, I got a folder instead of a single source code file.The folder contained a bunch of other files and subfolders with files.

I have identified the file in which I have to modify the code.But the problem is,after I have modified the only 1 file, how do I compile the whole bunch of folders and subfolders and many other files that I have not edited-into a single .dll file as they were before?

解决方案

You should not recompile decompiled code, since the compilation process is not completely reversible, even for .NET binaries. There are many missing libraries you might need, mismatches in libraries, etc. I would suggest decompiling and then patching the DLL using a .NET assembly editor of some sort.

Reflexil is one you should check out.

You should also understand .NET disassembly and understand how to move back and forth from the decompiled source and the binaries, so you'll know exactly what you want to change.

这篇关于编译&amp;解压缩dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆