Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Microsoft.AspNet.WebApi.Client reference conflicts

$
0
0

So I'm using one of my dlls which references Microsoft.AspNet.WebApi.Client version 5.2.3

And it seems this library is somehow referencing an old version of System.Core (the one from framework 2.0) and mscorlib.
As far as I can see the problem is with the System.Net.Http.Formatting dll which actually adds all the json  async method extensions(PostAsJsonAsync,etc
Does anyone know if there is another package from microsoft which would add the async extensions without using this formatting.dll and doesn't relly on these older versions so that one could use it in .net 4.5 projects without seeing the version conflict warning?

10>          C:\Work\Projects\SPP\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll
10>            Project file item includes which caused reference "C:\Work\Projects\SPP\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll".
10>              System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL
10>  There was a conflict between "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes".
10>      "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it was primary and "System.Core, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" was not.
10>      References which depend on "System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\System.Core.dll].


Viewing all articles
Browse latest Browse all 4850


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>