gpt4 book ai didi

c# - 无法通过 Nuget 安装 Microsoft.Net.Http

转载 作者:行者123 更新时间:2023-11-30 18:32:35 26 4
gpt4 key购买 nike

尝试在 Windows Phone 8 项目中安装 Microsoft.Net.Http 时。我收到此错误:

Attempting to resolve dependency 'Microsoft.Bcl (≥ 1.1.3)'.
Attempting to resolve dependency 'Microsoft.Bcl.Build (≥ 1.0.4)'.
Successfully installed 'Microsoft.Bcl.Build 1.0.10'.
Successfully installed 'Microsoft.Bcl 1.1.3'.
Successfully installed 'Microsoft.Net.Http 2.2.13'.
Successfully added 'Microsoft.Bcl.Build 1.0.10' to WinPhone.Data.
Executing script file 'D:\WinPhone\packages\Microsoft.Bcl.Build.1.0.10\tools\Install.ps1'.
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.
Executing script file 'D:\WinPhone\packages\Microsoft.Bcl.Build.1.0.10\tools\Uninstall.ps1'.
Successfully uninstalled 'Microsoft.Bcl 1.1.3'.
Successfully uninstalled 'Microsoft.Bcl.Build 1.0.10'.
Install failed. Rolling back...
Failed to add reference to 'System.IO'

它说它支持 Windows Phone 8:https://www.nuget.org/packages/Microsoft.Net.Http/2.2.13

有人有什么建议吗?

最佳答案

问题是 Nuget;有人在 msdn 上回答这个问题后更新并重试。之后它起作用了。

关于c# - 无法通过 Nuget 安装 Microsoft.Net.Http,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18493435/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com