Can't Install System.Net.Http Package into a Windows Phone 7.1 Silverlight Project

十年热恋 提交于 2019-12-06 07:19:33

Dan Roth (the owner of the System.Net.Http Nuget package) responded via email: "System.Net.Http.dll is not support on XNA, Phone or Silverlight at this point. It is only support on .NET 4 (through ASP.NET Web API), .NET 4.5. and the .NETCore Profile in Windows 8." So that is the unfortunate answer to this question.

As was pointed out by Dan, the System.Net.Http NuGet package has been deprecated in favor of Microsoft.Net.Http. For the latter we shipped an update that allows targeting Windows Phone 7.1.

We're working on shipping a stable release but we don't have a date yet.

since this comes up 1st on google, the beta package now supports windows phone 7.1 projects

to install user package manager console

PM> Install-Package Microsoft.Net.Http -Pre

Click here for project home page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!