小编Dan*_*nti的帖子

无法将System.Net.Http包安装到Windows Phone 7.1 Silverlight项目中

我使用Nuget安装"Microsoft ASP.NET Web API客户端库"以获取最新的System.Net.Http程序集,以便在Windows Phone 7.1 XNA和Silverlight项目中使用.它在我的WP7.1 XNA项目中安装得很好,但是不允许我将它安装到WP7.1 Silverlight项目中.我甚至尝试将它从Package Manager Console直接安装到新创建的WP7.1 Silverlight项目中,并获得此错误响应:

PM> Install-Package System.Net.Http 
Attempting to resolve dependency 'Microsoft.Net.Http (? 2.0.20710.0 && < 2.1)'.
You are downloading Microsoft.Net.Http from Microsoft, the license agreement to which is available at http://www.microsoft.com/web/webpi/eula/MVC_4_eula_ENU.htm. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant …
Run Code Online (Sandbox Code Playgroud)

silverlight system.net windows-phone-7 dotnet-httpclient

2
推荐指数
1
解决办法
2080
查看次数