[英].Net 6 dataverse client sdk error could not load type System.Runtime.Serialization.IDataContractSurrogate
Recently we have started a c# project using.Net 6.0.最近我们使用.Net 6.0启动了一个c#项目。 My team intended to use the Microsoft.PowerPlatform.Dataverse.Client sdk to connect to dynamics 365 crm for our development.我的团队打算使用Microsoft.PowerPlatform.Dataverse.Client sdk 连接到动态 365 crm以进行我们的开发。 However, when we hit the error as shown in image 1 below.但是,当我们遇到如下图 1 所示的错误时。 May i know is it the SDK does not support.Net 6.0 yet?我可以知道 SDK 还不支持.Net 6.0 吗?
The Dynamics 365
suppoert .NET 4.6.2 in general Dynamics 365
一般支持 .NET 4.6.2
take a look here Starting with the Dynamics 365 for Customer Engagement apps version 9.0看看这里从 Dynamics 365 for Customer Engagement 应用程序版本 9.0 开始
In the NuGet page , can know that it is support net462, net472, net48, netcore3.1在NuGet页面,可以知道它支持net462、net472、net48、netcore3.1
BUT I will recommend you use the .Net framework 4.6.2
in your application.但我会建议您在应用程序中使用.Net framework 4.6.2
。 To prevent unpredictable problem防止不可预知的问题
I have found the answer.我找到了答案。 Do not install the library below and it will resolved the issue.不要安装下面的库,它将解决问题。 enter image description here在此处输入图像描述
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.