添加System.Net.Http.dll引用到Windows Phone 8的项目丢错误 [英] Adding System.Net.Http.dll reference to windows phone 8 project throwing error

查看:169
本文介绍了添加System.Net.Http.dll引用到Windows Phone 8的项目丢错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我beginer到Windows Phone 8的开发。我希望它抛出一个错误添加命名空间,要使用的HttpClient在我的应用程序。我无法包括System.net.http.dll引用到我的项目,当我试图这样做,我得到这个错误,如图下面的截图

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

我使用的VisualStudio 2013和.NET 4.5

I am using visualstudio 2013 and .net 4.5

推荐答案

您可以不加建为大.NET的DLL。添加使用的NuGet( https://www.nuget.org/packages/Microsoft便携版.Net.Http /

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

这篇关于添加System.Net.Http.dll引用到Windows Phone 8的项目丢错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆