[英]Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0
I'm doing the automation with CRM.我正在使用 CRM 进行自动化。 Im getting the below error.我收到以下错误。 I have reinstalled all the nuget packages, deleted all the dlls from bin and re-built the code still remain same.我已经重新安装了所有 nuget 软件包,从 bin 中删除了所有 dll 并重新构建代码仍然保持不变。
Can you please guide where are we doing wrong.您能否指导我们在哪里做错了。
<package id="Microsoft.CrmSdk.CoreAssemblies" version="8.1.0.2" targetFramework="net46" />
<package id="Microsoft.CrmSdk.CoreAssemblies" version="8.2.0.1" targetFramework="net46" />
Message: Unit Test Adapter threw exception: Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.消息:单元测试适配器抛出异常:无法加载文件或程序集“Microsoft.Xrm.Sdk,版本=9.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040) Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. (HRESULT 异常:0x80131040)无法加载文件或程序集“Microsoft.Xrm.Sdk,版本=8.0.0.0,文化=中性,PublicKeyToken=31bf3856ad364e35”或其依赖项之一。 The located assembly's manifest definition does not match the assembly reference.找到的程序集的清单定义与程序集引用不匹配。 (Exception from HRESULT: 0x80131040). (来自 HRESULT 的异常:0x80131040)。
when i try to update the coreAssemblies当我尝试更新 coreAssemblies
Note: The Project and solutions are downloaded by source control which checked-in and running setup.注意:项目和解决方案由签入和运行设置的源代码管理下载。 I'm trying setup the my environment我正在尝试设置我的环境
We found the solution for the given problem.我们找到了给定问题的解决方案。 Need to change version in dependent assembly tag in app.config file.we have to change in each project where the assembly has been referred.需要在 app.config 文件中更改依赖程序集标记中的版本。我们必须在引用程序集的每个项目中进行更改。 please find the screenshot for your reference.请找到屏幕截图供您参考。
<bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" />
[![enter image description here][1]][1]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.