This is a migrated thread and some comments may be shown as answers.

Windows Phone DLLs all code is empty

8 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Benjamin
Top achievements
Rank 1
Benjamin asked on 27 Aug 2012, 07:17 PM
I am able to decompile my compiled DLLs and Microsoft DLLs for x86 without any problem, but when I try to look at source for Microsoft Windows Phone DLLs I can see the method and property signatures, but the bodies are all empty. For example if I try to look at mscorlib.dll (mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e).

8 Answers, 1 is accepted

Sort by
0
Accepted
Yordan Dikov
Telerik team
answered on 29 Aug 2012, 03:49 PM
Hi, Benjamin,
You've probably opened a reference assembly. Reference assemblies are hollow assemblies, containing only the signatures of the types and all their members of the real assemblies they "reference". They're used by various tools in the development process to represent their "full" equivalents. Thus, the "real" assembly and the "hollow" one have the same strong names and can be easily mistaken. If you want to see the code in the methods, you need to open the "real" assembly. Since the example you've given is essentially the Silverlight's mscorlib, the path to the "real" Silverlight assembly is %Program Files%\ Microsoft Silverlight\ <Version>.
I hope this will solve your problem.
Greetings,
Yordan Dikov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Benjamin
Top achievements
Rank 1
answered on 29 Aug 2012, 06:07 PM
Thank you very much, that indeed was my problem.
0
Vitalii
Top achievements
Rank 2
answered on 09 Nov 2013, 11:12 AM
It would be nice to have an option to auto-redirect from reference assembly to "real" one.

Also, a small question, probably linked to the current one. I have my own assembly, i moved it to my real project, i also moved *.pdb file. However, when i'm trying to open it in Studio (just GoToDefinition), it shows empty method names.

If to open assembly via JustDecompile standalone, it shows methods, but it usually takes much more time (to find file, open it, find class, method, etc).
0
Zdravko
Telerik team
answered on 13 Nov 2013, 02:05 PM
Hello Vitalii,

 JustCode decompiles your dll if you have this setting enabled.

Another way is to navigate to the method and set a break point. Then you will be asked whether you want to decompile the dll.

As last solution you can open the dll in the Assembly browser and decompile it manually.
Thanks.

Please, do not hesitate to contact us if you have any further questions or need of assistance.

Regards,
Zdravko
Telerik
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
0
Vitalii
Top achievements
Rank 2
answered on 13 Nov 2013, 04:25 PM
Hi Zdravko,

Thanks for your answer.
Lookign like, for all cases i'd need to have JustCode?
I'm using Resharper, not sure that i want to switch to JustCode now.

Dont you have any plans to implement some kind of non-free "JustDecompile Studio Plugin", which would enable those features without JustCode?
Its okay for me to pay for tools which improves my speed of development, but i really don't want to buy whole JustCode and use only one feature of it.
0
Vladi
Telerik team
answered on 14 Nov 2013, 03:39 PM
Hello Vitalii,

From the last Q3 2013 release, we've introduced a Visual Studio extension in JustDecompile. You'll be able to decompile a referenced assembly from your project using a Solution Explorer context command. It will decompile the assembly for you straight in the JustDecompile UI. Some more info: http://www.telerik.com/products/decompiler/whats-new.aspx#vs-extension

Hope this helps.

Kind regards,
Vladi
Telerik
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
0
Vitalii
Top achievements
Rank 2
answered on 14 Nov 2013, 04:02 PM
Hi Vladi,

Yees, but it is still a bit less user-friendly than just pressing F12 on requested word.

And they are still empty. I just opened some random reference: http://clip2net.com/s/6aTiKu
0
Vladi
Telerik team
answered on 15 Nov 2013, 10:02 AM
Hi Vitalii,

You're correct that it's much more user-friendly with F12. For now we offer it only through JustCode. I'm sorry.

As for the empty decompiled assembly, it seems like a bug on our (JustDecompile) side. I've logged it and we'll fix it. Please stay tuned for new versions of JustDecompile and update.

Kind regards,
Vladi
Telerik
Tell us what you think about JustDecompile. Your opinion matters! You can use our forum, or our JustDecompile UserVoice website for feature requests.
Tags
General Discussions
Asked by
Benjamin
Top achievements
Rank 1
Answers by
Yordan Dikov
Telerik team
Benjamin
Top achievements
Rank 1
Vitalii
Top achievements
Rank 2
Zdravko
Telerik team
Vladi
Telerik team
Share this question
or