Certain .net 4.0 assemblies can not disassemble with source

Explore, browse and analyze .NET assemblies

Moderators: Luke Jefferson, Charles Brown, StephenC, Alex.Davies, Greg.Tillman, melvyn.harbour

Certain .net 4.0 assemblies can not disassemble with source

Postby japple » Wed Dec 08, 2010 3:31 pm

I am running version 6.5.0.135, and I am unable to view method source code for certain Microsoft assemblies on dot net 4.0.

An example would be the following:
C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.0\\System.ServiceModel.Discovery.dll

If you find the discoveryclient class, you will see method stubs but no source code within the methods.

I have no add-ins loaded and have fully reinstalled reflector. I am able to see method source code in other dot net 4.0 assemblies. I am wondering if some of the new microsoft code has been obfuscated or if there is some bug. Either way, as long as I know the answer, that would be helpful.

Thank you!
japple
 
Posts: 3
Joined: Wed Dec 08, 2010 3:27 pm

Postby Clive Tong » Wed Dec 08, 2010 5:00 pm

You are looking at a "Reference Assembly". These contain the metadata but not the IL, hence no code is displayed for the methods.

You'll need to point Reflector at the real assembly to get the method source.
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Postby japple » Wed Dec 08, 2010 5:24 pm

I had hastily copied the reference path from VS 2010 instead of the real directory. Once I hit the correct path, all is well again.

I have to remember that the "reference assemblies" directory is really just for design time in the IDE.

Thank you.
japple
 
Posts: 3
Joined: Wed Dec 08, 2010 3:27 pm

Postby Clive Tong » Wed Dec 08, 2010 5:57 pm

File/OpenCache is quite useful in this regard as it lists the files in the GAC instead of other places like the "Reference Assemblies".
Clive Tong
 
Posts: 283
Joined: Thu Dec 04, 2008 5:42 pm

Postby japple » Wed Dec 08, 2010 6:02 pm

You're right. Open cache is really what I should be using as a matter of practice.

I really enjoy reflector, as most dot net developers do, and I sometimes get too accustomed to habit.

Thanks for your tips and reminders!!
japple
 
Posts: 3
Joined: Wed Dec 08, 2010 3:27 pm


Return to .Net Reflector 6.x and .NET Reflector 6.x Pro

Who is online

Users browsing this forum: No registered users and 0 guests