Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

Disassemble dll to get .cs files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
icanhelp33@gmail.com - 19 Mar 2008 21:33 GMT
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.
Peter Bromberg [C# MVP] - 20 Mar 2008 02:03 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.