问题描述
嗨大师,
我是新手程序员,缺乏经验,对C#和Asp.net有一定的了解。
我目前被指派对使用Webservice(C#4.0,.Net Framework 4.0)的C#窗口应用程序的某些页面进行更改。我没有项目的源代码,只有exe和dll文件(bin文件夹中的几个dll文件和3个exe文件,几个.resx文件,.asmx文件和垃圾箱外面的web配置)。 />
在搜索谷歌后,我明白我需要使用反射器工具来反编译代码和reflexil插件来更改代码。我已经反编译了应用程序的所有exe和dll文件,最后我得到了很多错误的源代码。但是,我没有看到任何设计页面,也不知道解决方案结构是否正确,因为我之前根本没有看过源代码。我真的需要你的帮助。我想得到正确的源代码和解决方案结构。
如果有人能告诉我,我将深表感谢
1)反编译的正确方法是什么? (我是否需要反编译exe文件和dll或其中之一?)
2)更改代码的更好方法是什么? (通过reflexil或Visual Studio的反射器)
3)我是否有一些链接可以解释如何将反编译代码(自动生成的代码)转换为正确的源代码?
4)我怎样才能获得设计页面(我看到的只有.cs页面)?
5)如何检查当前的解决方案结构是否正确?
如果需要提供更多信息,请告诉我。
提前感谢您的好意见。
注意:以前的程序员离开公司并且没有源代码。
Hi Guru,
I am newbie programmer with the little experience and having some knowledge of C# and Asp.net.
I am currently assigned to make the changes for some pages of the C# window application that is using Webservice (C# 4.0, .Net Framework 4.0). I don't have the source code for the project but exe and dll files only (a few dll files in bin folder and 3 exe files, a few .resx files, .asmx files and web config outsides of the bin).
After searching through the google, I understand that I need to used the reflector tools to decompile the code and reflexil plugin to change the code. I have decompiled all of the exe and dll files of the application and lastly I got the source code with a lot of errors. However, I don't see any design page and don't have any idea whether the solution structure is correct or not since I have not seen the source code before at all.I really need the help from you.I would like to get the correct source code and solution structure.
It would be deeply appreciated if someone can tell me
1) What is the proper way to decompile ? (Do I need to decompile both exe files and dll or either one?)
2) Which is the better way to change the code? (via reflector with reflexil or Visual Studio)
3) May I have some links that explain well how to convert the decompiled code (auto-generated code) to the correct source code?
4) How shall I do in order to get design page (all I see is .cs page)?
5) How to check the current solution structure is correct or not?
Please let me know if any further information is required to provide.
Thank you so much in advance for your kind advice.
Note:The previous programmer left the company and don't have the source code.
推荐答案
这篇关于如何正确反编译dll和exe文件并将反编译的代码转换为正确的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!