Disassemble dll to get .cs files

I

icanhelp33

I asked a contractor to work on a web project for me. This was 2
months ago. He gave me all the files. The contractor was telecommuting
from his come country. He uploaded all the code to me ftp site. The
website was runing just fine. Now I have to make some changes to the
code. The contractor isnt answering his emails. Now I realised that he
never gave me the files with the .cs extension. He just gave .aspx
files. The bin directory has the .dll file. I downloaded a utility
called reflector. I can view the methods, properties for this dll
using this utility. Is there any way to generate the class files from
a dll file.
 
P

Peter Bromberg [C# MVP]

Yes. If you look at the Reflector Addins entry in codeplex.com, you will find
at least 2 plugins that will disassemble an assembly in Reflector to source
code, including the c# .csproj files. Be advised that it is rarely perfect
and will require some fixing up. If you have the .pdb files, Reflector will
even name everything correctly.
Of course, hindsight is always 20-20. Source code really means "ALL" source
code, doesn't it?

--Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short Urls & more: http://ittyurl.net
 
I

icanhelp33

Thanks. I visited codeplex.com. It has lot of plug ins for the
reflector. Can you please suggest exact add-in that I have to
download. I have the .pdb files as well. Yes the source code means all
Source code
 
I

icanhelp33

I am using the Lutz Roetrs Reflector from http://www.aisto.com/roeder/dotnet/.
I downloaded ReflectionEmitLanguage.dll from codeplex.com (I suppose I
am supposed to download this add-in). I copy ReflectionEmitLanguage in
the same folder as Reflector.exe. Now using Reflector.exe, I open the
dll & pdb file for which I need source code written. For pdb it gives
an error that it is not recognised dll. For the dll I can see
methods& properties. I still dont know how to integrate the add-in
with the reflector so I can generate the source files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top