无法加载文件或程序集'GMap.NET.Core,版本= 1.7.5.0 [英] Could not load file or assembly 'GMap.NET.Core, Version=1.7.5.0

查看:396
本文介绍了无法加载文件或程序集'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?

推荐答案

您只需从

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆