Found conflicts between System.Net.Http

前端 未结 9 1427
一整个雨季
一整个雨季 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:40

    I am working with .NET 4.6.2 and found the same problem. I have two projects a web site and a test project. I review the following:

    • Both project has installed the NuGet package for System.Net.Http

    • The references in both program are equal and both point to the same
      package

    The Problem. The Web.Config and the App.Config from the project point to different System.NET.Http.

    I substitute the code in both config to get:

    
        
        
      
    

    in both of them. Then the conflict disappear.

提交回复
热议问题