简体   繁体   English

无法加载缺少特定版本的文件或程序集

[英]Could not load file or assembly with specific version missing

In my solution I have a third-party A.dll with another B.dll(Specific version = true) dependency. 在我的解决方案中,我有一个带有另一个B.dll(特定版本= true)依赖项的第三方A.dll But I have older version of B.dll and it goes with error: 但是我有较旧版本的B.dll,并且出现错误:

Could not load file or assembly 'B, Version=2.0.0.1, ...' 无法加载文件或程序集'B,Version = 2.0.0.1,...'

but i have B.dll with little older version (2.0.0.0) 但我有B.dll,但版本较旧(2.0.0.0)

so how can i solve my problem? 那我该如何解决我的问题呢?
How to loose version depenceny? 如何释放版本的depenceny?
Force to look for older in not exists? 力寻找年龄较大的人不存在吗?

AND what is important A and B are third-party. 并且重要的是A和B是第三方。 So i can't change it. 所以我不能改变它。

Just define a version redirection in your app.config. 只需在app.config中定义版本重定向。

See here . 这里

Or you can set the 'Specific version' option to false. 或者,您可以将“特定版本”选项设置为false。

Of course, both options only work as long as there is no breaking change... 当然,这两种选择只有在没有重大变化的情况下才起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法加载文件或程序集 'EntityFramework,版本 = 6.0.0.0, - Could not load file or assembly 'EntityFramework, Version=6.0.0.0, 无法加载文件或程序集 'Ninject 版本 4.0.0.0 - Could not load file or assembly 'Ninject version 4.0.0.0 无法加载文件或程序集'RevitApi'版本= 19.0.0.0, - Could not load file or assembly 'RevitApi' version = 19.0.0.0, 无法加载文件或程序集 'RestSharp,版本 = 105.2.3.0 - Could not load file or assembly 'RestSharp, Version=105.2.3.0 无法加载文件或程序集'WebGrease,Version = 1.5.1.25624 - Could not load file or assembly 'WebGrease, Version=1.5.1.25624 无法加载文件或程序集 'EntityFramework,版本 = 6.0.0.0 - Could not load file or assembly 'EntityFramework, Version=6.0.0.0 无法加载文件或程序集系统2.0.0版 - Could not load file or assembly System, Version 2.0.0 无法加载文件或程序集“Office,版本 = 15.0.0.0” - Could not load file or assembly 'Office, Version=15.0.0.0' 无法加载文件或程序集'PayPalAdaptivePaymentsSDK,版本= 2.12.117.0 - Could not load file or assembly 'PayPalAdaptivePaymentsSDK, Version=2.12.117.0 无法加载文件或程序集'AjaxMin,版本= 4.97.4951.28478, - Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478,
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM