简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM