'System.Net.Http.HttpContent' does not contain a definition for 'ReadAsAsync' and no extension method

后端 未结 6 2173
梦如初夏
梦如初夏 2020-12-02 16:27

I made a console app to consume a Web API I just made. The console app code does not compile. It gives me the compilation error:

\'System.Net.Http.HttpConten         


        
6条回答
  •  星月不相逢
    2020-12-02 16:59

    or if you have VS 2012 you can goto the package manager console and type Install-Package Microsoft.AspNet.WebApi.Client

    This would download the latest version of the package

提交回复
热议问题