ReSharper "Decompiled Sources" vs dotPeek

Hi all

Quick question regarding the decompiler in ReSharper 6.

In the following, I am attempting to view the source code of a WPF Button...

If I use ReSharper's "Decompiled Sources" navigation option, I see an outline of the class and it's attributes. The methods are empty and contain no code.

However, if I use dotPeek to view the button I see the fully populated methods and all source code.

Am I doing something wrong here? - I was hoping that ReSharper "Decompiled Sources" would display the same source code as dotPeek.

Thanks

3 comments

Hello,

This happens because your project in Visual Studio references a surface assembly
PresentationFramework which only contains metadata, while you've opened the
"real" PresentationFramework assembly in dotPeek. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hi all

Quick question regarding the decompiler in ReSharper 6.

In the following, I am attempting to view the source code of a WPF
Button...

If I use ReSharper's "Decompiled Sources" navigation option, I see an
outline of the class and it's attributes. The methods are empty and
contain no code.

However, if I use dotPeek to view the button I see the fully populated
methods and all source code.

Am I doing something wrong here? - I was hoping that ReSharper
"Decompiled Sources" would display the same source code as dotPeek.

Thanks

---
Original message URL:
http://devnet.jetbrains.net/message/5308213#5308213



0

I M,

If I use ReSharper's "Decompiled Sources" navigation option, I see an outline of the class and it's attributes. The methods are empty and contain no code.


On which assembly did you execute "Decompiled Sources"?

If the path contains "program files\reference assemblies" (which VS always
does) then they only consist of the metadata but contain no code at all.

--
/\/\arkus.

0

Thanks both for the reply!

Yes - the VS reference is to...

C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\Client\System.dll

So, the next question is, how do I make the decompile in VS look like the decompile in dotPeek?

Thanks very

0

Please sign in to leave a comment.