Search code examples
.netwindows-phone-8visual-studio-2013dotnet-httpclientsystem.net.httpwebrequest

Adding System.Net.Http.dll reference to windows phone 8 project throwing error


I am beginer to windows phone 8 development. I want to use HttpClient in my app it throws an error to add namespace for that. I am unable to include System.net.http.dll reference to my project when i tried to do that i got this error as shown in screenshot below

http://i60.tinypic.com/2mdj447.jpg

I am using visualstudio 2013 and .net 4.5


Solution

  • You cannot add a DLL built for the "big" .NET. Add the portable version using Nuget (https://www.nuget.org/packages/Microsoft.Net.Http/)

    Install-Package Microsoft.Net.Http