I have a .net standard 2.0
library where I'm using Microsoft.AspNet.WebApi.Client
verison 5.2.6 which has reference to System.Net.Http.Formatting
version 5.2.6.
Then from .net 4.6.1 I'm reference to this .net standard 2.0
library and I get run time exception
System.IO.FileLoadException: 'Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)'
Why the version of System.Net.Http.Formatting
is 5.2.6? As far as I know max version for now is 5.2.3. And in my .net 4.6.1 project in config file it's added as 5.2.3 version.
How can I workaround it?
User contributions licensed under CC BY-SA 3.0