Could not load file or assembly System.Net.Http version 4.1.1.0

前端 未结 8 1354
春和景丽
春和景丽 2020-12-09 14:55

I\'m porting a Net Framework 4 dll to Net Core. When porting my unit tests project I get an exception running some specific tests (not all).

System.IO

8条回答
  •  一整个雨季
    2020-12-09 15:11

    I tried out various solutions (removing the dependentAssembly OR specifying the binding redirect as well). None of them worked.

    However, the only solution which worked for me was to explicitly set Specific Version for System.Net.Http (or whatever DLL giving you version issues) to False from Visual Studio.

提交回复
热议问题