HttpClient is not found in .NET 4.5

Joan Venge picture Joan Venge · May 1, 2013 · Viewed 48k times · Source

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?

Answer

ulrichb picture ulrichb · May 1, 2013

Add a reference to System.Net.Http:

add ref