编辑 .NET 程序集并重新编译 [英] Edit .NET assembly and recompile

查看:20
本文介绍了编辑 .NET 程序集并重新编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的处境非常糟糕.我丢失了我的源代码,我的客户需要在应用程序中进行一些更改.以编辑一个程序集为例:Test.dll 然后添加一行代码,最后重新编译

I'm in a really bad situation. I lost my source code and my customer needs to change a little bit in the application. Think of edit an assembly for an example: Test.dll then add a code line and finally recompile it

所以我的问题是:- 可以这样做吗?- 如果可能,编辑程序集然后重新编译它的好工具是什么?

So my question is: - Is it possible to do that? - If it's possible, what is the good tool to edit an assembly and then recompile it?

推荐答案

是的,get ILSpy,它有能力使用 .csproj 和所有内容将程序集保存到磁盘.这使得在 Visual Studio 中打开和重新编译变得容易.

Yes, get ILSpy, it has the ability to save an assembly to disk with a .csproj and everything. This makes it easy to open in Visual Studio and recompile.

ILSpy 是免费和开源的.

ILSpy is free and open source.

这篇关于编辑 .NET 程序集并重新编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆