Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

Posted on by 170

Hi,

I have created a solution which is having a plugin in C# referring the Microsoft.XRM.SDK.dll version 6.0.

Many of our customers with CRM version 2013, 2015, 2016 and dynamics 365 have this solution installed. One of the customer has complained to replace the dll to latest version. (because of https://crmgiant.eu/errors/important-information-about-your-microsoft-dynamics-crm-online-service-acs-for-authentication/).

Please let me know how to update the dll to latest version 8.2 in the C# plugin.

Do I need to refer the 8.2 dll in C# plugin code and again register the plugin, create managed solution...

and then import the upgrade solution on the client's CRM.

OR is there any other way of doing this?

Also one more point - the same solution, I have already installed for customers having CRM version 2013. So the question is upgrading the dll to 8.2, will it  get supported by CRM 2013 ?

Thanks in advance.

*This post is locked for comments

  • Suggested answer
    imayur Profile Picture
    imayur 630 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Hi,

    where its showing version 8.0? Well, the best way to upgrade and downgrade CRM SDK assemblies is through Nuget Package Manager. Also Nuget package manager only shows only SDK versions which are supported with respected to .NET Framework of project.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Hi Mayur,

    When we are referring the Microsoft.Xrm.Sdk.dll version 8.2.0.2, still visual studio is showing as 8.0.0.0. Why it is like?

    Need help on this.

    Regards,

    Raheem

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Thanks. I will specify the version while upgrading the solution.

  • imayur Profile Picture
    imayur 630 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    You can also specify version no while creating/updating solutions.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Thanks for your response Mayur. Will follow the same and start working on creating the upgrade solutions.

  • Verified answer
    imayur Profile Picture
    imayur 630 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    right! As long as the plugin made in SDK supports you customer CRM version.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Thank you so much Mayur.

    Actually I already have lots of customers running with the CRM solution which I need to upgrade now for the C# plugin. So it is required to update the solution at one place and then import the upgrade to all the customers so that all of them will then have the latest SDK dll in the plugin in the solution. So as per your opinion I need to create an upgrade solution which will have the updated plugin with latest dlls and import it to all the customers.. right?

  • Suggested answer
    imayur Profile Picture
    imayur 630 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Both are valid/recommended approaches to update and add new plugin

    If you export plugin assembly in solution it may include SDK messaging steps associated with it, so you don't need to define the plugin steps again.

    If you want to deploy plugin from one instance to another instance solution is the best approach. If you want to add/update only dll or  plugin steps then use plugin registration tool.

  • MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    Thank you Mayur.

    I am referring here the MSCRM solution. The C# plugin is at the end referred in MSCRM solution. Let's say I have created a  mscrm solution only for CRMs higher than 2013 version which is having a plugin created in C#. Now if I update the C# plugin to newer version of dll then do I need to follow the below steps -

    1. Register the plugin again.

    2. Create managed MSCRM solution.

    And then import the upgrade solution at client side

    Is this the correct way to upgrade the plugin in CRM ?

  • Suggested answer
    imayur Profile Picture
    imayur 630 on at
    RE: How to replace Microsoft.XRM.SDK.dll from version 6.0 to 8.2 in C# plugin

    I think you have taken wrong for Solutions(I meant Visual Studio Solution). Just use plugin registration tool to add/update plugins/dlls.

    Its all about your CRM support for framework and SDK.

    4064.1111.JPG

    If you are migrating plugin to higher version. Open your Plugin project update you Xrm Dlls resolve references if needed or probably need to use newer functions if some are deprecated then Clean and build. and register new plugin into CRM. If your Plugin project is migrated to higher CRM version probably it wont work in previous CRM versions because .net framework dependency or you plugin will crash (Exceptions). Its not recommended to register old or new dlls into CRM because of framework or SDK dependencies.

    So you need maintain different projects  depending on SDK support for different CRM versions.

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans