Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Decompile and recompile plugin without source code

Posted on by 450

Hi there.
I have decompiled a Plugin.
First of all, I did it because the the developer did not give me the source codes, And even not answering me, I mean I did not do anything illegal.
The company had paid for source code, But did not get that,Anyways.
I have made a solution and include that plugin.
I could export plugin with  XrmToolBox.
I insert the exported plugin into ILSpy and I could saw the code, But can not change and deploy ( right? )
I have Visual Studio 2011, I installed Developer Tools.
I connected to the crm via VS and open that solution consist the plugin.
I can see the plugin in VS, But how can I change that?
If not possible, How can I do reveres?
I can see the codes in ILSpy, But not in the VS.
Any suggestion? Or any help?

*This post is locked for comments

  • Albert_ Profile Picture
    Albert_ 450 on at
    RE: Decompile and recompile plugin without source code

    Hi Arun,

    Thank you for you help.

    You know, I just did that.

    It gives me lots of error( Finally I understood I should use VS 2015 for the kind of Lambda Expression it had used )

    Now It gives me some error,

    Most of them is about this :

    entity.attribute.get: cannot explicitly call operator or accessor

    I have missed a .dll as reference?

  • Verified answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Decompile and recompile plugin without source code

    Basically you are developing a new plugin, but you are copying the existing code (assume like copying C# code from online blog but in your case ILSPY decompiled code).

    1.create a new class library & compose the code the way you want. Get the existing code blocks & paste it in new library. Build & get the dll

    crmbook.powerobjects.com/.../developing-a-plug-in

    2.you should take screenshots of existing steps, unregister the existing assembly dll by your ex-developer in Plugin registration tool (more details in the next step & link). Time being you can simply disable all the steps so that it won’t disturb you in your current process. Don’t forget to unregister as this may get accidentally enabled in future.

    3.register your new assembly & steps

    crmbook.powerobjects.com/.../registering-and-deploying-plug-ins

  • Albert_ Profile Picture
    Albert_ 450 on at
    RE: Decompile and recompile plugin without source code

    He does not even answer my phone !!

  • Albert_ Profile Picture
    Albert_ 450 on at
    RE: Decompile and recompile plugin without source code

    Could you show me by a sample?

  • Albert_ Profile Picture
    Albert_ 450 on at
    RE: Decompile and recompile plugin without source code

    Could you show me by a sample? A link? Something like that.

  • Suggested answer
    Guido Preite Profile Picture
    Guido Preite 54,081 Super User 2024 Season 1 on at
    RE: Decompile and recompile plugin without source code

    you can't redeploy/update the same plugin as you don't have the .snk file used to sign the assembly.

    You will need to recompile using a new .snk file and register all the steps to your new plugin

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Decompile and recompile plugin without source code

    Hi Albert_,

    You need to transfer the decompiled code from ILSpy to Visual Studio, modify the code in Visual Studio, and redeploy the Plugin code to your CRM instance. However, I do not recommend this approach as it is smarter to pursue the developer for the source code.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans