asp.net - Unable to create HttpClient instance in console app, mvc 4 web api -
i've installed nuget package web api , trying create httpclient instance in console app (i added system.net.http reference), strange compile error:
error 1 type or namespace name 'httpclient' not found (are missing using directive or assembly reference?) c:\users\aleksey_chepovoi@epam.com\documents\visual studio 2012\projects\consoleapplication\program.cs 14 21 consoleapplication
already tried restart vs 2012 , create new console project.
what reason error?
the reference looking system.net.http nuget package need httpclient http://nuget.org/packages/microsoft.net.http/2.0.20710.0
just make sure either using .net 4.5 or .net 4 full. client profile of .net 4 not work.
Comments
Post a Comment