Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

Posted on by Microsoft Employee

Hello all,

I have recently started using CRM DeveloperToolKit for deploying my plugins.

It gives an option for deploying single plugins(in one assembly)

Below is a weird behavior that I am not able to understand: 

Steps :

In the CRMDeveloperToolKit - deploy 2 plugins in the same assembly . 

We change the content for both the plugins and only deploy one of them (with the single deploy option CRM Tools-> Deploy ).

Expected : Only one plugin should be updated and the previous plugin's functionality should remain as is.

Actual : Both the plugins get updated. We can verify this using the Plugin Trace log.

Is there any way we can update only 1 plugin in an assembly.

*This post is locked for comments

  • Ben Walker Profile Picture
    Ben Walker 265 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    The 'Deploy' option for the plugins is really to deploy the message processing step(s) associated with the plugin you have selected.

    So every time you deploy, it will always update the entire assembly (how could it not) but it will also deploy or update any message processing step for the selected plugins according to the configuration in the crmregister file.

    I agree it is confusing, and I also think that they should provide an option which just deploys the assembly without having to select one or more plugins, as most of the time you only want to deploy a new version of the assembly without changing any message processing steps.

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    One plugin assembly can have multiple plugins.

    Hence all plugins in assembly will be updated.

    To avoid it you can comment your new code that you do not want to deploy.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    Even though I understand that this is the expected functionality, what I don't understand is why is there a separate Deploy page for deploying single plugins. This seems very misleading as a developer.

  • Verified answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    As everyone else suggested, this is expected behavior.

    Similar to deploying workflows from one instance to the other, results in the original workflow being replaced, even if no changes are made.

    As long as the GUIDs (of the workflows/plugins) are same, it doesnt matter.

    The registration tool does more of an Upsert action. Creates new plugins/plugin steps and updates the existing ones.

    If my answer helps you, please mark as verified as this will help other users in the community to resolve the same or similar issues.

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    Hi

    CRM will not keep different versions of DLLs, it will only use one version of the DLL and that's why all get updated. I don't think there is a way around this unless you separate your code into multiple DLLs.

    When you deploy from Visual Studio using the developer toolkit, it will overwrite the DLL with a new version effectively updating all the steps.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    If this is the expected behavior. I don't see a reason why they have an option for deploying a single plugin, (In the deploy solution page or by Crm Tools-> Deploy) when there is no way to deploy(Update) that plugin only.

    Deploying the plugin for the first time(creating new single plugin) as far as I can see, works fine , the issue is when we try and update a single plugin.

  • Suggested answer
    Temmy Wahyu Raharjo Profile Picture
    Temmy Wahyu Raharjo 2,914 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    Split your plugin into 2 different DLL. No other way.

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Update of single plugin in Crm DeveloperToolKit , updates all the plugins in the assembly.

    Hello,

    Since you only have one plugin assembly (dll), the changes you make there impacts all the plugins registered for that assembly. What you are seeing is expected behavior.

    What you'd like to achieve could be done via different plugin assemblies (dll) and isolate the plugins one from each other.

    Regards,

    Radu

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans