TL; DR: I\'m new to this language and have no idea what I\'m doing
here is my class so far:
using System;
using System.Collections.Generic;
using Sys
You'll need a using System.Net.Http
at the top.
You need to have a Reference to the System.Web.Http
assembly which has the HTTPClient
class, your trying to use. Try adding the below line before your class declaration
using System.Web.Http;
If you still get the Error, try doing this in Visual Studio
System.Web.Http.dll
).Making the "Copy Local" property True for the reference did it for me. Expand References, right-click on System.Net.Http and change the value of Copy Local property to True in the properties window. I'm using VS2019.
Visual Studio Package Manager Console > Install-Package Microsoft.AspNet.WebApi.Client