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

查看:95
本文介绍了编辑.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?

推荐答案

是的,获得 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.

< img src = https://i.stack.imgur.com/RzYCB.png alt =保存代码>

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

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