Two assemblies depends on two different versions of the same other assembly

时间:2019-04-08 13:56:24

标签: c# .net-core

I have a .net core 2.0 project where I'm facing some dependency resolving issues.

My project, lets call it WebApi, depends on package Foo on version 1.93. My WebApi also depends on package Bar on version 1.13. But Bar also depends on Foo, but on verson 1.91. When WebApi calls Bar, I have an exception:

System.IO.FileNotFoundException: Could not load file or assembly 'Foo, Version=1.91, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified..

How do I solve this kind of dependency binding problem?

Thanks!

0 个答案:

没有答案