title: Microsoft Dynamics 365 SDK Core Assemblies .NET Core Porting Error
body: <p>When trying to use <a href="https://www.nuget.org/packages/Microsoft.CrmSdk.CoreAssemblies/" rel="noreferrer">Microsoft Dynamics 365 SDK Core Assemblies</a> in a .NET Core 2.0 project, the following error occurs at runtime simply by <code>using Microsoft.Xrm.Sdk</code>:</p>
  
  <blockquote>
    <p>TypeLoadException: Could not load type
    'System.ServiceModel.Description.MetadataConversionError' from
    assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral,
    PublicKeyToken=b77a5c561934e089'.</p>
  </blockquote>
  
  <p>It looks like the Core Assemblies (Microsoft.Xrm.Sdk.Client) may simply not be compatible with anything other than ~net4x.</p>
  
  <p>Is there any obvious way to get around this error or load the WCF <code>System.ServiceModel</code> class/interfaces needed by <code>Microsoft.Xrm.Sdk</code> in the context of target <code>netcoreapp2.0</code>? Is it possible to use 
  <a href="https://www.nuget.org/packages/Microsoft.Windows.Compatibility" rel="noreferrer">Microsoft.Windows.Compatibility</a> to bridge the gap? It looks like the Microsoft.Windows.Compatibility pack <a href="https://docs.microsoft.com/en-us/dotnet/core/porting/windows-compat-pack" rel="noreferrer">documentation</a> indicates <strong>Windows Communication Foundation (WCF)</strong> classes/interfaces are "available". How can I use the compatibility pack to perhaps load <code>System.ServiceModel.Description</code>?</p>
  
  <p>Thank you for any help you can provide!</p>