Is Microsoft.AspNet.WebApi.Client supported in .NET Core or not?

后端 未结 3 890
鱼传尺愫
鱼传尺愫 2021-02-13 12:59

I\'m currently trying to do some JSON formatting using the HttpClient in .NET Core and MediaTypeFormatters. Especially the function "ReadAsAsync(..., MediaTypeFormatter, ..

3条回答
  •  不知归路
    2021-02-13 13:48

    Update:

    Microsoft.AspNet.WebApi.Client version 5.2.4 was released on 2018-02-12.

    Thanks @whitney-kew @jaquez


    The package is not fully compatible with dotnetcore now. However there's workaround for this. You have to edit project.csproj like below:

    
      
       netstandard1.4
       portable-net451+win8
      
      
        
        
        
       
    
    

    Please refer to this github issue for details:

    https://github.com/aspnet/Home/issues/1558

    I think the new Microsoft.AspNet.WebApi.Client version (5.2.4) should fix this, but it's not released yet, maybe in late 2017.

提交回复
热议问题