Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)?

like image 308
sthiers Avatar asked Feb 17 '10 10:02

sthiers


People also ask

Is .NET Reflector free?

Development started after Red Gate announced that the free version of . NET Reflector would cease to exist by end of February 2011. Update: JetBrains has released dotPeek, its free .

How do I use Redgate reflector?

NET Reflector, you will be asked pick a version of the NET Framework to populate the assembly list. When you want to browse an assembly, all you will need to do is to run NET Reflector, drag the file from Windows explorer and drop it onto NET Reflector. You can also open and .exe, . dll or .


2 Answers

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

like image 23
Govardhan Avatar answered Sep 22 '22 14:09

Govardhan


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.

like image 127
Joey Avatar answered Sep 18 '22 14:09

Joey