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.
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 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
[quoted text clipped - 6 lines]
> using this utility. Is there any way to generate the class files from
> a dll file.
icanhelp33@gmail.com - 20 Mar 2008 18:42 GMT
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
icanhelp33@gmail.com - 20 Mar 2008 18:55 GMT
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.