更新:PM> 安装包 Microsoft.AspNet.WebApi.Client根据 System.Net.Http.Formatting NuGet 包页面,System.Net.Http.Formatting 包现在是旧包,可以在 Microsoft.AspNet.WebApi.Client 包中找到http://www.nuget.org/packages/Microsoft.AspNet.WebApi.Client/" rel="noreferrer">NuGet 在这里.I see in tons of examples on the web using the new HttpClient object (as part of the new Web API) that there should be HttpContent.ReadAsAsync<T> method. However, MSDN doesn't mention this method, nor does IntelliSense find it.Where did it go, and how do I work around it? 解决方案 It looks like it is an extension method (in System.Net.Http.Formatting):HttpContentExtensions ClassUpdate: PM> install-package Microsoft.AspNet.WebApi.ClientAccording to the System.Net.Http.Formatting NuGet package page, the System.Net.Http.Formatting package is now legacy and can instead be found in the Microsoft.AspNet.WebApi.Client package available on NuGet here. 这篇关于HttpContent.ReadAsAsync 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-22 22:49
查看更多