Rest – HttpClient & HttpResponseMessage missing in VS 2010 – its for consume REST services

restvisual studio 2010wcfwcf-rest

does anyone know if HttpClient & HttpResponseMessage classes are available in VS 2010? I can't seem to get them to work, do i need to add a reference or using namespace?

These classes were originally from the starter kit for REST for Vs 2008… In vs 2010 its built in i.e. no use for the starter kit…

But how do I cosume them if these classes are missing…

I have searched google for an answer and all i keep finding is examples for vs 2008 i.e. the REST starter kit.

Any help really appreciated

Thanks in advance

Best Answer

Use NuGet to install the WebApi.All:

  1. from VS2010 menubar: View -> Other Windows -> Package Manager Console
  2. from Package Manager Console type in the command Install-Package WebApi.All
  3. in .cs add "using System.Net.Http;"
Related Topic