gpt4 book ai didi

c# - 无法加载文件或程序集 GalaSoft.MvvmLight

转载 作者:行者123 更新时间:2023-12-03 10:42:27 26 4
gpt4 key购买 nike

"Could not load file or assembly 'GalaSoft.MvvmLight, Version=5.4.1.0, Culture=neutral, PublicKeyToken=0ffbc31322e9d308' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"GalaSoft.MvvmLight, Version=5.4.1.0, Culture=neutral, PublicKeyToken=0ffbc31322e9d308"



尝试从 .NET Framework 4.6.1 WPF 应用程序实例化使用 MvvmLightLibs 库的类时出现上述错误。

添加绑定(bind)重定向并不能解决问题,并且bin文件夹中的.dll版本为5.4.1.0,与错误消息中缺少的程序集相同。
<dependentAssembly>
<assemblyIdentity name="GalaSoft.MvvmLight" publicKeyToken="0ffbc31322e9d308" culture="neutral"/>
<bindingRedirect oldVersion="0.0.0.0-5.4.1.0" newVersion="5.4.1.0"/>
</dependentAssembly>

最佳答案

or one of its dependencies



很可能您没有错过 GalaSoft.MvvmLight, Version=5.4.1.0,而是您错过了它的依赖项之一。看看它的依赖列表。此外,通常 GalaSoft.MvvmLight 依赖于不同版本的库,而不是您在项目中使用的版本。

关于c# - 无法加载文件或程序集 GalaSoft.MvvmLight,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52098530/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com