简体   繁体   English

RedGate Reflector从.net程序集恢复源代码

[英]RedGate Reflector to recover source code from .net assembly

Quick question. 快速提问。

Can I recover a lost .cs file using RedGate Reflector ? 我可以使用RedGate Reflector恢复丢失的.cs文件吗?

My assembly is a debug version 我的程序集是调试版本

If you open .NET assembly in Reflector, you should be able to switch which language Reflector uses to display the code eg IL , VB.NET , C# . 如果在Reflector中打开.NET程序集,则应该能够切换Reflector用来显示代码的语言,例如ILVB.NETC# There is a dropdown list on the UI menu bar with this selection of languages. UI菜单栏上有一个带有此选择语言的下拉列表。

As long as you have all the required external libraries and references, you should be able to copy the C# code form Reflector and try to rebuild it. 只要拥有所有必需的外部库和引用,您就应该能够复制C#代码形式Reflector并尝试对其进行重建。

To make it a little more simple to get the IL code back into a file you should check out this Reflector Add-in . 为了使将IL代码重新放入文件更加简单,您应该签出Reflector插件

More add-ins for Reflector can be found here . 在此处可以找到更多有关Reflector的加载项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM