Can I use .NET Reflector to modify & recompile the code quickly?
Asked Answered
S

4

24

Is it possible to use .NET Reflector (or an other tool) to modify and recompile the code quickly (that is, without dumping the source and then use Visual Studio to recompile it)?

Strangulate answered 17/2, 2010 at 10:33 Comment(0)
S
33

You can probably use the Reflexil add-in for Reflector to do that:

Reflexil is an assembly editor and runs as a plug-in for Reflector. Using Mono.Cecil, Reflexil is able to manipulate IL code and save the modified assemblies to disk. Reflexil also supports 'on the fly' C# and VB.NET code injection.

Spandrel answered 17/2, 2010 at 10:36 Comment(3)
+1. I've used Reflexil and it works great. Reflexil is the way to go!Eryneryngo
sorry for my noob question, but how to add this plugin to relector ? I mean red gate's .net reflector ? ThanksSubjunctive
Yes, Red Gate's .NET Reflector. Run it, then go to Menu->View->Add-Ins->[Add Button]. Browse for the plugin .dll and that's it.Punkie
C
4

It's possible with .Net reflector along with reflexil. First download reflexiil and then open .net relector and load the reflexil into it using View->addins->select the reflexil file(all dlls) and then load. After that open the required dll file and go to tools->select reflectil, open the code and identify the required item, then edit..give to the assemblyy and select save as to save it to new file

Cauchy answered 10/1, 2013 at 7:38 Comment(0)
L
2

.NET Reflector cannot do this, but other tools can decompile .NET assemblies, for example FileDisassembler (an add-in for .NET Reflector).

Ld answered 17/2, 2010 at 10:35 Comment(0)
E
0

You can use Telerik JustDecompile, which is free (I have no affiliation with Telerik). After you load the assembly you wish to decompile, from the toolbar, click on Tools-> Create Project and it will create a .sln and .csproj which will include all the source files. You can even generate VB.NET source files if you prefer.

Eggbeater answered 14/8, 2020 at 16:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.