Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decompile a .dll file created in VS.net

Tags:

c#

dll

I need to decompile a dll file created in VS.net.

Is there any tool available to do this?

Or Can I have some code to do this?

Please help.

like image 491
Himadri Avatar asked Oct 01 '09 13:10

Himadri


People also ask

How do I decompile DLL in Visual Studio?

To do this, go to the Modules window and from the context menu of a . NET assembly, and then select the Decompile source code command. Visual Studio generates a symbol file for the assembly and then embeds the source into the symbol file. In a later step, you can extract the embedded source code.

Can you decompile DLL files?

Decompiling DLL Files. Download and install a decompiler. A "decompiler" is a program that allows you to see the source code that was used to construct a file or program, in this case a DLL file. In order to see the code that makes a DLL file work, you will need to use a decompiler to revert it back into readable code.

How do I decompile a DLL using net reflector?

net reflector doesn't allow to add your dll to decompile, I recommend you to write a new post to Relector . NET forum:http://forums.reflector.net/ for a better and quicker response. In addition, we can use other tools to decompile your Dll: 1.


3 Answers

Edit 2: I now use DotPeek from Jetbrains. Its ability to decompile as I need to while debugging is amazing.

Edit: Now that Reflector is no longer a free tool, a newer tool ILSpy is under development.

ILDASM is your friend. But Reflector is a soulmate

like image 123
Preet Sangha Avatar answered Sep 21 '22 06:09

Preet Sangha


Check out Reflector.

like image 23
Frederik Gheysels Avatar answered Sep 22 '22 06:09

Frederik Gheysels


I tried .NET Reflector and wasn't fully happy of the quality of decompiled code. Then I came across dotPeek and I must say it's way better then Reflector. I had to make only one small adjustement and decompiled code works as it should after compiling it in Visual Studio. I really recommend this decompiler especially it's completely free of charge.

like image 42
intersum Avatar answered Sep 19 '22 06:09

intersum