RedGate Reflector to recover source code from .net assembly

点点圈 提交于 2019-12-31 03:43:09

问题


Quick question.

Can I recover a lost .cs file using RedGate Reflector ?

My assembly is a debug version


回答1:


If you open .NET assembly in Reflector, you should be able to switch which language Reflector uses to display the code e.g. IL, VB.NET, C#. There is a dropdown list on the UI menu bar with this selection of languages.

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.




回答2:


To make it a little more simple to get the IL code back into a file you should check out this Reflector Add-in.

More add-ins for Reflector can be found here.



来源:https://stackoverflow.com/questions/4134497/redgate-reflector-to-recover-source-code-from-net-assembly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!