我可以使用 .NET Reflector 快速修改和重新编译代码吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2279882/
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
Can I use .NET Reflector to modify & recompile the code quickly?
提问by sthiers
Is it possible to use .NET Reflector(or an other tool) to modify and recompile the code quickly(that is, without dumping the source and then use Visual Studioto recompile it)?
是否有可能使用.net反射(或其他工具)来修改和重新编译代码快(即没有倾销源,然后使用Visual Studio的重新编译)?
回答by Joey
You can probably use the Reflexiladd-in for Reflector to do that:
您可能可以使用反射器的Reflexil插件来做到这一点:
Reflexil is an assembly editor and runs as a plug-in for Reflector. Using Mono.Cecil, Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports 'on the fly' C# and VB.NET code injection.
Reflexil 是一个程序集编辑器,作为 Reflector 的插件运行。使用 Mono.Cecil,Reflexil 能够操作 IL 代码并将修改后的程序集保存到磁盘。Reflexil 还支持“动态”C# 和 VB.NET 代码注入。
回答by Govardhan
It's possible with .Net reflector along with reflexil. First download reflexiil and then open .net relector and load the reflexil into it using View->addins->select the reflexil file(all dlls) and then load. After that open the required dll file and go to tools->select reflectil, open the code and identify the required item, then edit..give to the assemblyy and select save as to save it to new file
使用 .Net 反射器和反射器是可能的。首先下载reflexiil,然后打开.net relector 并使用View->addins->选择reflexil 文件(所有dll)将reflexil 加载到其中,然后加载。之后打开所需的dll文件并转到工具->选择反射,打开代码并确定所需的项目,然后编辑..给程序集并选择另存为将其保存到新文件
回答by Gerrie Schenck
.NET Reflector cannot do this, but other tools can decompile .NET assemblies, for example FileDisassembler(an add-in for .NET Reflector).
.NET Reflector 无法执行此操作,但其他工具可以反编译 .NET 程序集,例如FileDisassembler(.NET Reflector 的加载项)。

