Command line option

21 posts, 0 answers
  1. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 27 Apr 2011 Link to this post

    Please add a command line option to decompile directly.

    Ex:
    JustDecompile.exe "C:\Program Files (x86)\Telerik\JustDecompile\Libraries\Microsoft.Practices.Unity.dll"

    Thanks
    Eric
  2. Todd Anglin
    Todd Anglin avatar
    2040 posts
    Member since:
    Aug 2005

    Posted 27 Apr 2011 Link to this post

    Hello Eric-

    Thanks for the feedback and the idea. How would you see this command behaving? 

    Should it simply open JustDecompile directly to the specified assembly (loading, if necessary)?
    Or should it decompile the specified type(s) and output them directly to a file without opening the UI?

    I expect the prior is the most common case, but let us know how/when you'd use this command and we'll definitely add it to the JustDecompile idea backlog.

    -Todd
  3. DevCraft banner
  4. Eric Schoenholzer
    Eric Schoenholzer avatar
    138 posts
    Member since:
    Mar 2004

    Posted 27 Apr 2011 Link to this post

    Hi Todd,

    For me the first case is the most usual, was my first thought. Should also work with multiple assemblies.

    But writing the output to a file could be useful too, for example for decompiling a whole project.

    Eric
  5. Jeff
    Jeff avatar
    1 posts
    Member since:
    Aug 2011

    Posted 12 Aug 2011 Link to this post

    Output to *.cs files should also be supported. Ideally you could pass args like

    JustDecompile.exe /ver:2.0.50727 /outdir:"c:\dlls_decomp" /lang:"cs" /refsdir:"c:\all_dlls" "c:\updated_dlls\*.dll"
     
     
     

  6. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 18 Aug 2011 Link to this post

    Hi Jeff,

     The feature is in development state. It will probably be included in this month's internal builds.

    All the best,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  7. Amit
    Amit avatar
    8 posts
    Member since:
    Jul 2012

    Posted 09 Sep 2011 Link to this post

    When the next build would be available?? I'm also looking for the command line options with JustDecompile to convert the IL code generated from C# to VB.Net to provide the projects source code in both versions. 
  8. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 14 Sep 2011 Link to this post

    Hello Amit,

    The feature is planed to be ready by the end of the month. Let us know if you have any other feature requests.

    All the best,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  9. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 06 Oct 2011 Link to this post

    I'm also SUPER interested in this feature.

    Full featured command line support would enable a lot of possible scenarios.

    Not sure what the command line looks like yet, but personally I want to be able to specify an input file and at a minimum specify an output file and the language (IL or C#).

    additionally, cmd line options to check just header info would be nice (ie, is it strong name signed, what other managed code files are imported and so on)

    I would love to know as soon as this feature is ready for testing :)


    thanks
    jason
  10. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 07 Oct 2011 Link to this post

    As of  10/7/2011 - when i downloaded the recent JustDecompile build there seems to be no command line options. Any idea when JustDecompile will release with command line support?

    thanks
    jason
  11. Amit
    Amit avatar
    8 posts
    Member since:
    Jul 2012

    Posted 11 Oct 2011 Link to this post

    Finally its released .. Came to know from tweet by @kodefuguru Telerik  has a new version! New Command Line support, added in Windows context menu, and many more:
  12. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Oct 2011 Link to this post

    Hi Amit,

    The command line support feature is added in our latest build along with some other cool stuff and tones of decompilation fixes. You can still share your suggestion or remarks concerning the application functionality.

    Greetings,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  13. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 11 Oct 2011 Link to this post

    Just tested the command line and it works but is limited...some ideas for improvement

    1. I would have never know the right syntax had u not posted the it on the forums.  /? or -help (are not implemented)

    2. When using the /out flag it would be nice if the GUI closed itself so i would know from an external application that processing was completed.

    3. a lang:IL would be nice

    4. would be nice to have an option where /out produces .cs files by class (as u seem to be doing now creating 100+ .cs files) or create 1 large .cs file that contains everything

    5. some option for not even showing the GUI  /nogui    and automatically terminate when done.

    6. an option for displaying just header info  /header
  14. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 12 Oct 2011 Link to this post

    Hi Jason Bourdette,

    Thanks for the remarks. We are currently refactoring the command line a bit and as a result it will be able to be used as a separate stand alone CMD tool - without any UI representation. The IL language is not currently supported and would probably be scheduled for implementation after the official product release. 
    As for your last point - can you clarify your note. What do you mean by showing only headers?

    Kind regards,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  15. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 12 Oct 2011 Link to this post

    i was thinking something like output metadata
    for example /headers
    might show if it strong name signed, signed by who, other data in the CRL header that may be interesting.

    also another option i thought of last night, could be something like  /list_functions
    where is just lists all the class::functions that are implemented.

    my end goal/use case would be to have/build a telerik ajax asp.net page/control that could read the output of justdecompile and make a web page out of it. (ie recreate the treeview control and the code display window on an asp.net page.
  16. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 17 Oct 2011 Link to this post

    Hello Jason Bourdette,

     This sounds interesting. We will log the feature and implement it definitely in some future product version.

    Best wishes,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  17. Jason Bourdette
    Jason Bourdette avatar
    77 posts
    Member since:
    Jan 2010

    Posted 28 Oct 2011 Link to this post

    thanks for the feedback,

    i was playing with the newest version of the justdecompilecmd.exe tool. Much nicer. It now supports the /? and has a nice help menu.

    lets say my end goal is to have an ajax asp.net page/control for viewing a .net executable (it doesn't have to be as fancy as justdecompile). just has to take an input file and have a treeview on left with a C# preview pane on right. How hard would it be to create something like that? I assume much of the justdecompile dll (library code) could be reused. Is this something that telerik would ever consider making (even just as a code library sample that is not officially supported)?
  18. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    409 posts

    Posted 01 Nov 2011 Link to this post

    Hi Jason,

     Well at some point we are going to release a plugin API. That might get the job done for you. We cannotreally commit to a specific timeline for that, though. All we have at present is the command line.

    Kind regards,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  19. Christian
    Christian avatar
    2 posts
    Member since:
    Nov 2011

    Posted 05 Nov 2011 Link to this post

    Hello developers of JustDecompile!

    You have done a great job and it is amazing that JustDecompile is free and will be free for the future!

    In order to enhance this excellent tool even more, you could add a command line option for the encoding of the output file(s). This parameter should enable or, respectively, disable the byte order marker (BOM) in front of each decompiled source code file. According to the specification of UTF-8, the BOM is optional and causes some problems, for example, when reading a decompiled, UTF-8 encoded file with Java. Java's implementation of InputStream does not detect BOMs and therefore does not skip it.

    Please let me know whether and when you will add this feature.

    Regards,
    Christian
  20. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 11 Nov 2011 Link to this post

    Hello Christian,

    Thanks for the good words. It won't take much time for the implementation. So I will log it and probably  start it for the next product build.

    Regards,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  21. Christian
    Christian avatar
    2 posts
    Member since:
    Nov 2011

    Posted 17 Nov 2011 Link to this post

    That sounds great! Thank you Kaloyan.

    Could you additionally say, please, when do you think will you release the next product build?

    Kind regards,
    Christian
  22. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 22 Nov 2011 Link to this post

    Hi Christian,
     
    We'll be able to add new features, similar to these ones after the official release, scheduled for the end of the year.

    Greetings,
    Kaloyan
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner