简体   繁体   English

.Net 6 dataverse 客户端 sdk 错误无法加载类型 System.Runtime.Serialization.IDataContractSurrogate

[英].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.1NuGet页面,可以知道它支持net462、net472、net48、netcore3.1

image from nuget图片来自 nuget 在此处输入图像描述

BUT I will recommend you use the .Net framework 4.6.2 in your application.我会建议您在应用程序中使用.Net framework 4.6.2 To prevent unpredictable problem防止不可预知的问题

Microsoft.PowerPlatform.Dataverse.Client sdk to connect to dynamics 365 crm Microsoft.PowerPlatform.Dataverse.Client sdk 连接动态365 crm

works with .net framework 4.6.2 or .net core 3.1适用于 .net 框架 4.6.2 或 .net 核心 3.1

MS Docs 微软文档

MS Github MS Github

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.

相关问题 无法加载文件或程序集System.Runtime.Serialization.Xml - Could not load file or assembly System.Runtime.Serialization.Xml AWS .NET SDK DynamoDB LoadAsync返回“无法加载类型”错误 - AWS .NET SDK DynamoDB LoadAsync returning 'Could not load type' error AWS .NET SDK SimpleEmail SendEmail 返回“无法加载类型”错误 - AWS .NET SDK SimpleEmail SendEmail returning 'Could not load type' error 单声道编译错误 - 无法从程序集“系统”加载类型“System.Runtime.CompilerServices.ReferenceAssemblyAttribute” - Mono Compiling Error - Could not load type 'System.Runtime.CompilerServices.ReferenceAssemblyAttribute' from assembly 'System' 无法从程序集'mscorlib,版本= 4.0.0.0加载类型'System.Runtime.CompilerServices.ExtensionAttribute'错误 - Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0 Error 无法加载类型System.Runtime.Diagnostics.ITraceSourceStringProvider - Could not load type System.Runtime.Diagnostics.ITraceSourceStringProvider 无法使用.Net Core dll加载文件或程序集'System.Runtime' - Could not load file or assembly 'System.Runtime' with .Net Core dll 通过Windows Azure发布后无法加载文件或程序集System.Runtime.Serialization - Could not load file or assembly System.Runtime.Serialization after publishing via Windows Azure 无法从程序集加载类型System.Runtime.Versioning.TargetFrameWorkAttribute - Could not load type System.Runtime.Versioning.TargetFrameWorkAttribute from assembly C# .NET“无法加载文件或程序集 System.Runtime” - C# .NET "Could not load file or assembly System.Runtime"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM