Unable to create HttpClient instance in console app, mvc 4 web api

s1950

New Member
I've installed nuGet package for web api and trying to create a HttpClient instance in console app (I added System.Net.Http reference), but I get a strange compile error: \[quote\] Error 1 The type or namespace name 'HttpClient' could not be found (are you missing a using directive or an assembly reference?) C:\Users\[email protected]\Documents\Visual Studio 2012\Projects\ConsoleApplication\Program.cs 14 21 ConsoleApplication\[/quote\]Already tried to restart VS 2012 and create a new console project. What could be the reason for this error?
 
Back
Top