无法加载文件或程序集'GMap.NET.Core,版本= 1.7.5.0

编程入门 行业动态 更新时间:2024-10-28 16:17:05
本文介绍了无法加载文件或程序集'GMap.NET.Core,版本= 1.7.5.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在我的项目中加载地图.我在项目上使用了WPF,但是由于无法使用放置标记的叠加层",并且它在WindowsForm上都可以使用,因此我现在使用它并将其调用为WPF表单,直到我遇到了这个错误.

I am trying to load a map on my project. I'm using WPF on my project but since I can't use the "Overlays" I'm using to put a marker, and it's working on WindowsForm, I am now using it and calling it to the WPF form, until I encountered this error.

无法加载文件或程序集'GMap.NET.Core,版本= 1.7.5.0, 文化=中性,PublicKeyToken = b85b9027b614afef"或其中之一 依赖关系.找到的程序集的清单定义不 匹配程序集参考. (来自HRESULT的异常:0x80131040)

Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0, Culture=neutral, PublicKeyToken=b85b9027b614afef' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

我查看了自己的参考文献,并且仅参考了GMap.NET.Core版本1.7.0.0. 我可以解决这个问题吗?

I look in my references, and I only have a reference to GMap.NET.Core version 1.7.0.0. Can anybody please help me should I solve this?

推荐答案

您只需从这里接下来,提取项目文件,然后打开Release-NETv(any_version)

You need to just download the project of Gmap.Net from here next extract the project files open Release-NETv(any_version)

其中包含Gmap.Net.Core程序集,因此只需在您的项目中添加该程序集的引用即可.

this contain assembly of Gmap.Net.Core ,so just add reference of this assembly in your project.

这是当程序集不匹配时会发生什么,这不是一个相同的问题,但是可以帮助您理解.

Here is what happens when assemblies not matches this is not same problem but will help you understand.

引用不正确的示例

错误

解决方案

要解决此问题,请打开您的应用配置文件,并在其中查看gmap包的版本号,然后检查引用中的gmap版本号(如果它们与引用不匹配),然后从您的引用中删除dll,并将版本号更改为1.7.5.0. appconfig然后重建项目Visual Studio,将自动恢复丢失的程序集,因此它们在两侧都是相同的 为了使您更好地理解,请参见当我在参考文献中使用程序集时使用此版本的屏幕截图,该版本小于项目appconfig中正在使用的版本. 从软件包管理器安装软件包时,它将进入应用程序的软件包文件夹以进行添加,如果包含旧版本,则从引用中删除引用,然后从软件包文件夹中添加最新版本.

To solve this kindly open your app config file and see the version number of gmap package there then check the version number of gmap inside your references if they not match delete dll from references and change the version number to 1.7.5.0 in your appconfig then rebuild project visual studio automatically restore the missing assemblies so they will be same on both sides For your better understanding please look this screen shot when I have an assembly in references uses version which is less the version is being use in project appconfig. When you install a package from package manager it goes inside package folder of your application to add this,delete the reference from references if contain old version then add latest version from package folder.

错误解决

通过更改appconfig中的版本,错误消失了.

By changing the version in appconfig the error was gone.

更多推荐

无法加载文件或程序集'GMap.NET.Core,版本= 1.7.5.0

本文发布于:2023-11-06 13:08:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1563779.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:加载   版本   文件   程序   GMap

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!