Found conflicts between System.Net.Http

前端 未结 9 1412
一整个雨季
一整个雨季 2020-12-08 07:12

I have several projects in my VS solution. Whenever I add \"System.Net.Http\" NuGet package to one it shows as version 4.2.0.0. Then I do the same and add same NuGet Package

9条回答
  •  抹茶落季
    2020-12-08 07:36

    There is a new solution to this that works as of the 9th of October 2018.

    1. You will need to update all your references to System.Net.Http to the latest version 4.3.4.
    2. You should install the package into your .Net framework solution that is causing the conflict, even if it does not explicitly require the package.
    3. If your project has the new project structure, edit it and make sure it includes the following package reference:

      
      
    4. Search your solution and delete any existing binding redirects for System.Net.Http they will look as follows

      
        
        
      
      
    5. Rebuild, the warning should now be gone and your code should build and run fine

提交回复
热议问题