Comments
4 comments
-
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. -
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. -
File/OpenCache is quite useful in this regard as it lists the files in the GAC instead of other places like the "Reference Assemblies".
-
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!!
Add comment
Please sign in to leave a comment.
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!