Kros-sk / Kros.Libs

This repo contains Kros.Utils, Kros.Utils.MsAccess, Kros.KORM and Kros.KORM.MsAccess libraries.
MIT License
7 stars 13 forks source link

Reference System.Net.Http for .Net 4.6.x #182

Closed ML13 closed 5 years ago

ML13 commented 5 years ago

Library name and version

Description

For full .NET 4.6.x u should not reference nugget package System.Net.Http because of mismatch in dlls. e.g davidsh comments (https://github.com/dotnet/corefx/issues/25773, https://github.com/dotnet/corefx/issues/29622 )

Steps To Reproduce

  1. Create ConsoleApp in .NET 4.6.2
  2. Add Kros.Utils
  3. Create DLL in .NET 4.6.2
  4. Add refit with some API call
  5. Use DLL in ConsoleApp

Expected behavior

It should work.

Actual behavior

Error caused by System.Net.Http dll mismatch.