views:

423

answers:

2

I use reflector to decompile a asp.net dll, after that I find the bug and fixed it, now I want to compile it back to a dll, then I can deploy, but it seems that I can't how can I do this ?

+3  A: 

You have two choices, either you use Reflector's addin Filedisassembler, which is free, or commercial ( and pricy) .net dissemblers such as spices.net or salamander decompiler.

I used Filedisassembler; the quality of the decompiled code is very bad. The decompiler code cannot be recompiled.

I'm sure about the quality of commercial decompilers but I suspect that it would be much better.

Edit: To use Filedisassembler, go to Reflector, View->Addins, click Add and select the Filedisassembler.dll.

Ngu Soon Hui
How to use it ? I downloaded it, but it is only a Dll file ?
MemoryLeak
You have to put that DLL in one folder, and then at tools->addin, select the dll as the addin, something like that. You can explore around
Ngu Soon Hui
+1  A: 

If the fix is simple enough and you know IL, you are better of round tripping it using IL instead of a high-level language such as C# or VB.Net.

See search: http://www.google.com/#hl=en&q=ildasm+IL+round-tripping

logicnp