System.Net.Http is missing

I am trying to upload mp3 files using HTTPClient in the System.Net.Http namespace, but it looks vs 2012 does not recognize it. I created a project under .Net 4.5 and it was not recognized.

I want to use HTTPClient , I see some messages that add this from NuGet , but I can not find it in NuGet ? or at least add a link to it?

+6
source share
4 answers

Just click

Tools> Library Package Manager> Package Manager Console

Then you will see the command line in the source editing area.

then enter the following command

ex: PM> Install-Package System.Net.Http -Version 2.0.20710

Hope this will be useful (this is for VS2010, hope it will be the same as for VS2012)

+4
source

You need to specify the correct assembly ( System.Net.Http )

See HttpClient not found in .NET 4.5 for more details.

+2
source

You can use WebClient to download an Mp3 file. Here is more description about web client

0
source

This is only in the GAC. Just add the System.Net.Http link to the frames category.

0
source

All Articles