gpt4 book ai didi

c# - 如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?

转载 作者:太空狗 更新时间:2023-10-29 20:58:13 26 4
gpt4 key购买 nike

注意:这个answer没有帮助我,因为我没有相同的 dll:System.Collections.Immutable 1.1.37

我正在使用 Visual Studio 2013 和 .net 4.5 并遵循本教程:Get started with Azure Blob storage using .NET我正在尝试安装 WindowsAzure.Storage 但收到此错误:

Attempting to resolve dependency 'Microsoft.Data.OData (≥ 5.8.2)'. Attempting to resolve dependency 'System.Spatial (= 5.8.2)'. Attempting to resolve dependency 'Microsoft.Data.Edm (= 5.8.2)'. Attempting to resolve dependency 'Newtonsoft.Json (≥ 6.0.8)'. Attempting to resolve dependency 'Microsoft.Data.Services.Client (≥ 5.8.2)'. Attempting to resolve dependency 'System.Net.Requests (≥ 4.0.11)'. Attempting to resolve dependency 'System.ComponentModel.EventBasedAsync (≥ > 4.0.11)'. Attempting to resolve dependency 'System.Dynamic.Runtime (≥ 4.0.0)'. Attempting to resolve dependency 'System.Linq.Queryable (≥ 4.0.0)'. The 'System.Linq.Queryable 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.12.0.817'. enter image description here

当我根据图像中的红色错误升级 Nuget 时,它会将我带到“扩展和更新”,要求更新此内容: enter image description here

我不知道我正在寻找的内容与此之间的关系,但我还是继续遵循该更新,但收到错误: enter image description here

我应该从这里出发去哪里!?

根据 Simsons 的评论,我已经检查了我的处理器是否支持虚拟化: enter image description here

最佳答案

当您尝试通过 NuGet 安装 WindowsAzure.Storage 包时,这是关键错误;

Attempting to resolve dependency 'System.Linq.Queryable (≥ 4.0.0)'. The 'System.Linq.Queryable 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.12.0.817'

遗憾的是,System.Linq.Queryable 4.0.0 需要 NuGet 3.0 或更高版本。因此这不适用于 Visual Studio 2013。

幸运的是,较新的 System.Linq.Queryable 4.3.0 仅需要 NuGet 2.12,该版本可用于 Visual Studio 2013。

因此,要通过 NuGet 在 Visual Studio 2013 中成功安装 WindowsAzure.Storage:

  1. 如果尚未安装 NuGet 2.12,请下载并安装。 (OP已确认已有此版本)
  2. 在 NuGet 中,安装 System.Linq.Queryable 4.3.0
  3. 在 NuGet 中,安装 WindowsAzure.Storage

关于c# - 如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43531186/

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