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

前端 未结 8 1351
春和景丽
春和景丽 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:20

    And now the junior programmer solution.... double check that you are making the updates suggested by Jawen and Jean in Nuget Package Manager in the correct places too. Remember that you might have a solution with your project and a test project, and so double check to update both sets of References.

    0 讨论(0)
  • 2020-12-09 15:29

    Go to the app.config and remove all the lines there that reference System.Net.Http.

    0 讨论(0)
提交回复
热议问题