Edit .NET assembly and recompile

前端 未结 3 445
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-25 13:38

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 the

相关标签:
3条回答
  • 2020-12-25 14:15

    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 is free and open source.

    Save Code

    0 讨论(0)
  • 2020-12-25 14:20

    Reflector is the most well known tool for disassembling .net Executables. Another tool is Dis#.

    0 讨论(0)
  • 2020-12-25 14:34

    Exporting & recompiling might not be possible for large applications with many assembies, so I'd suggest a different approach:

    The most comfortable way to go might be to use Reflexil in combination with .NET Reflector (not free) or JustDecompile from Telerik (very free). I did this a few times and had the best result with JustDecompile - even if I'd prefer ILSpy over JustDecompile at any other time.

    "Now, how"? you might ask: Here's a small tutorial from the guys at Telerik.

    (look at the topic "How can I inject C# code in an assembly?")


    UPDATE

    You should definitely look at the new kid on the block: dnSpy

    0 讨论(0)
提交回复
热议问题