Windows Phone DLLs all code is empty

9 posts, 1 answers
  1. Benjamin
    Benjamin avatar
    4 posts
    Member since:
    Aug 2012

    Posted 27 Aug 2012 Link to this post

    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).
  2. Answer
    Yordan Dikov
    Admin
    Yordan Dikov avatar
    69 posts

    Posted 29 Aug 2012 Link to this post

    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.

  3. DevCraft banner
  4. Benjamin
    Benjamin avatar
    4 posts
    Member since:
    Aug 2012

    Posted 29 Aug 2012 Link to this post

    Thank you very much, that indeed was my problem.
  5. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 09 Nov 2013 Link to this post

    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).
  6. Zdravko
    Admin
    Zdravko avatar
    657 posts

    Posted 13 Nov 2013 Link to this post

    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.
  7. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 13 Nov 2013 Link to this post

    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.
  8. Vladi
    Admin
    Vladi avatar
    167 posts

    Posted 14 Nov 2013 Link to this post

    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.
  9. Vitalii
    Vitalii avatar
    104 posts
    Member since:
    Jul 2013

    Posted 14 Nov 2013 Link to this post

    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
  10. Vladi
    Admin
    Vladi avatar
    167 posts

    Posted 15 Nov 2013 Link to this post

    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.
Back to Top
DevCraft banner