ASP.NET Core 中的 PostAsJsonAsync 方法在哪里? [英] Where is the PostAsJsonAsync method in ASP.NET Core?
问题描述
我在 ASP.NET Core 中寻找 PostAsJsonAsync()
扩展方法.基于本文,它在 Microsoft.AspNet.WebApi.Client
程序集中可用.
I was looking for the PostAsJsonAsync()
extension method in ASP.NET Core. Based on this article, it's available in the Microsoft.AspNet.WebApi.Client
assembly.
我原以为 Microsoft 已将所有程序集名称从 Microsoft.AspNet
更改为 Microsoft.AspNetCore
以更具体地针对 .NET Core,然而,然而我找不到 Microsoft.AspNetCore.WebApi.Client
程序集.
I had thought Microsoft had changed all of the assembly names from Microsoft.AspNet
to Microsoft.AspNetCore
to be more specific to .NET Core, however, and yet I cannot find an Microsoft.AspNetCore.WebApi.Client
assembly.
ASP.NET Core 中的 PostAsJsonAsync()
扩展方法在哪里?
Where is the PostAsJsonAsync()
extension method in ASP.NET Core?
推荐答案
它是库的一部分 Microsoft.AspNet.WebApi.Client
https://www.nuget.org/packages/Microsoft.AspNet.WebApi.客户/
这篇关于ASP.NET Core 中的 PostAsJsonAsync 方法在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!