无法安装Microsoft HTTP客户端库 [英] Failed to install Microsoft HTTP Client Libraries

查看:106
本文介绍了无法安装Microsoft HTTP客户端库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计,

我刚刚安装了Windows-8 VS并创建了我的第一个图书馆项目。我必须将Windows 8库迁移到Windows 8手机。建议使用Microsoft HTTP Client库。

I just installed Windows-8 VS and created my first library project. I have to migrate Windows 8 library to Windows 8 phone. It was recommended to use Microsoft HTTP Client libraries.

使用包管理器:

Install-Package Microsoft.Net .Http -Pre

您正在从Microsoft下载Microsoft.Net.Http,许可协议可从http://go.microsoft.com/fwlink/?LinkID=279007获取。检查软件包是否有其他依赖关系,这可能与他们自己的许可协议一起提供。您使用
的包和依赖项构成您接受其许可协议。如果您不接受许可协议,请从您的设备中删除相关组件。

已成功安装"Microsoft.Net.Http 2.2.7-beta"。

成功将'Microsoft.Bcl.Build 1.0.7'添加到Oath10ClientWindows8PhoneLibrary。

此项引用无法从项目中删除,因为它始终由编译器引用。

此引用无法从项目中删除,因为它始终由编译器引用。

此引用无法从项目中删除,因为它始终由编译器引用。

此引用无法从项目中删除,因为它始终由编译器引用。

已成功卸载"Microsoft.Bcl 1.1.0-beta"。

已成功卸载'Microsoft .Bcl.Build 1.0.7'。

安装失败。回滚...

安装包:无法添加对'System.IO'的引用。

行:1字符:1

+安装包Microsoft.Net.Http -Pre

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~

    + CategoryInfo         :NotSpecified :( :) [Install-Package],InvalidOperationException

    + FullyQualifiedErrorId:NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand



PM> 

You are downloading Microsoft.Net.Http from Microsoft, the license agreement to which is available at http://go.microsoft.com/fwlink/?LinkID=279007. 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 components from your device.
Successfully installed 'Microsoft.Net.Http 2.2.7-beta'.
Successfully added 'Microsoft.Bcl.Build 1.0.7' to Oath10ClientWindows8PhoneLibrary.
This reference cannot be removed from the project because it is always referenced by the compiler.
This reference cannot be removed from the project because it is always referenced by the compiler.
This reference cannot be removed from the project because it is always referenced by the compiler.
This reference cannot be removed from the project because it is always referenced by the compiler.
Successfully uninstalled 'Microsoft.Bcl 1.1.0-beta'.
Successfully uninstalled 'Microsoft.Bcl.Build 1.0.7'.
Install failed. Rolling back...
Install-Package : Failed to add reference to 'System.IO'.
At line:1 char:1
+ Install-Package Microsoft.Net.Http -Pre
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

PM> 

我尝试了NuGet Package Manager UI并得到了相同的结果。

I tried NuGet Package Manager UI and got the same result.

有什么建议吗?

感谢任何输入。

- eugene

--eugene

推荐答案

您使用的是哪种图书馆项目? 您是否安装了VS2013更新3  
What kind of library project are you using?  Do you have VS2013 update 3 installed?  


这篇关于无法安装Microsoft HTTP客户端库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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