To use HttpClient from System.Net.Http in a project targeting .Net 4.0, run the following command in the NuGet Package Manager Console:

Install-Package Microsoft.Net.Http

Visit the official NuGet pages for more info about the package.