Search code examples
c#.netasynchronoushttpclient.net-4.5

HttpClient is not found in .NET 4.5


I am trying to use the new HttpClient in .NET 4.5, but Visual Studio complains that it doesn't exist. I have System.Net, but when I type System.Net.Http, it complains for that too.

Am I supposed to download a new distributable for this class?


Solution

  • Add a reference to System.Net.Http:

    add ref