如何向 ASP.NET 中编译和托管的网站添加额外的功能?
我有一个 ASP.NET 2.0 遗留网站,我必须修复该网站中的两个错误。
问题是我们(我和客户)没有这个网站的源代码。
我们拥有的只是网站编译和托管版本所在的 FTP。
现在,我们非常确定开发人员没有故意使用任何其他第三方工具来混淆已编译的代码。他刚刚使用了标准的 Visual Studio 编译器。
我的问题是
- 是否可以从编译版本中获取源代码?
- 如何从这个编译版本中获取源代码?
- 我还有什么其他选择?
- .NET Reflector 可以方便地提取代码吗?
I have an ASP.NET 2.0 legacy website with me, in which I have to fix two bugs in the website.
The problem is that we ( me and client ) do not have the source code for this website.
All we have is the FTP where the compiled and hosted version of the website resides.
Now, we are pretty sure that the developer has not intentionally done anything to obfuscate that compiled code with any other third party tools. He have just used the standard Visual Studio compiler.
My questions are
- Is it possible to get the source code from the compiled version?
- How can I get the source code from this compiled version?
- What other options do I have?
- Will .NET reflector be handy to extract the code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,.Net Reflector 应该是反编译代码所需的全部(无论如何,没有注释)。
尝试从 .Net Reflector 内的 bin 目录中打开 DLL 文件,看看是否能理解它。
编辑:看来,在调查Adrian Iftode提到的ILSpy之后,有一个名为 Reflexil 的 .Net Reflector 开源插件,它可以满足您的需要 - 修改编译的 DLL。那非常值得一看!
Yes, .Net Reflector should be all you need to decompile the code (without comments, anyway).
Try opening the DLL files from the bin directory inside .Net Reflector and see if you can make sense of it.
EDIT: It appears that after investigating ILSpy, which Adrian Iftode mentioned, there is an open source plugin for .Net Reflector called Reflexil that does what you need - modifying compiled DLLs. That would be well worth a look at!