Microsoft.XRM.SDK.dll升级

Microsoft.XRM.SDK.dll upgrade

我对 Microsoft.Xrm.SDK.dll 有一个小疑问。最近我收到一封来自 Microsoft 的电子邮件,说他们将关闭对任何 Microsoft.Xrm.Sdk.dll 版本 低于 8.2.
的支持 我正在使用 Dynamics CRM 2016(应用程序版本:8.1.1.1183、数据库版本:8.1.1.1183)和 SDK 客户端连接到此 CRM。此 SDK 客户端使用 Microsoft.Xrm.Sdk.dll v6.1. 我想知道它会继续工作还是我必须更改代码并升级 dll? 谢谢

我建议您完成 MSDN blog

不知道何时何地(您的 CRM 版本)项目开始并停留在 2016 年以及您未来的项目计划是什么(无论是维持模式还是保持最新状态),无法对行动发表评论。

作为一般做法,请单独进行升级试验 copy/sandbox 看看。然后计划在Live中进行代码更新和sdk升级。

这可能与 ACS 弃用有关(仅适用于在线组织):

参见:https://blogs.msdn.microsoft.com/crm/2017/05/29/update-dynamics-crm-client-sdk-version-to-avoid-calls-to-acs/

With the deprecation of Azure Access Control Service (ACS), you should modify the SDK authentication code by removing all references to ACS. Effective from Microsoft Dynamics CRM Online 2016 Update 1 (v8.1.1) and Microsoft Dynamics 365 (v8.2), we removed Live ID support and ACS dependencies on the server-side. It is required to update the references in all client side components by updating the SDK.

对于自定义应用程序,您需要确保您拥有 正确 版本的 SDK。

Custom Application(s) – If you have developed a Web/Windows/Console application that is interacting with Dynamics CRM

  • Scan the folders on your server where the solution is running and look for: Microsoft.XRM.SDK.dll. If found, use the table given in the Team Blog site to determine which version of the SDK you need to download.
  • Using the table, determine which version of .NET that you have deployed against, and confirm the version of Dynamics 365 CRM service you are using. If you are uncertain which .NET version your solution is using, contact your development or engineering teams.
  • Once you have determined the correct SDK version to use simply replace the Microsoft.XRM.SDK.dll found in /bin folder with the latest version of the SDK dll.Replace Microsoft.XRM.SDK.dll with latest version of SDK dll