web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Decompile and recompile plugin without source code

(0) ShareShare
ReportReport
Posted on by 458

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

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator 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.

  • Suggested answer
    Guido Preite Profile Picture
    54,084 Moderator 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

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

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

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

    Could you show me by a sample?

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

    He does not even answer my phone !!

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator 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
    458 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?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans