Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternative to Microsoft.AspNet.WebApi.Client in ASP.NET Core 2.0 class library

Recently updated an ASP.NET Core 1.x (.NET Framework) class library to an ASP.NET Core 2.0 (.NET Core) class library and ran into one problem.

The class library relies on Microsoft.AspNet.WebApi.Client v5.2.3

It seems like this client only works with .NET Framework. Is the best current solution for the time being to get Microsoft.AspNet.WebApi.Client v5.2.4 alpha which works with .NET Core 2.0?

like image 961
Blake Rivell Avatar asked Oct 17 '25 10:10

Blake Rivell


1 Answers

Have you tried Microsoft.AspNetCore.Mvc.WebApiCompatShim?

* Update 11/01/2018 *

Compat shim now depends on latest Microsoft.AspNet.WebApi.Client package (5.2.4-preview1). More about this change here

like image 141
Ivan Milosavljevic Avatar answered Oct 20 '25 01:10

Ivan Milosavljevic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!