如何在 Visual Studio 2013 中安装 WindowsAzure.Storage? [英] How do I install WindowsAzure.Storage in Visual Studio 2013?

查看:24
本文介绍了如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

注意:这个

当我根据图像中的红色错误升级 Nuget 时,它会将我带到扩展和更新,要求更新:

我不知道我要查找的内容与此内容之间的关系,但我还是继续并遵循了该更新,但出现错误:

我应该从哪里开始!?

根据 Simsons 的评论表,我已经检查过我的处理器是否支持虚拟化:

解决方案

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

<块引用>

正在尝试解决依赖关系System.Linq.Queryable (≥ 4.0.0)".System.Linq.Queryable 4.0.0"包需要 NuGet 客户端版本3.0"或更高版本,但当前 NuGet 版本为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

Note: this answer didn't help me because I don't have the same dll: System.Collections.Immutable 1.1.37

I'm using Visual Studio 2013 and .net 4.5 and following this tutorial: Get started with Azure Blob storage using .NET I am trying to install WindowsAzure.Storage but get this error:

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'.

when I upgrade Nuget per the red error in the image, it takes me to Extensions and Updates asking to update this:

I don't know the relation between what I am looking for and this, but I went ahead and followed that update anyway, but get the error:

Where should I proceed from here!?

based on comment form Simsons, I already checked that my processor supports Virtualization:

解决方案

When you try to install the WindowsAzure.Storage package through NuGet, this is the key error;

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'

Unfortunately, System.Linq.Queryable 4.0.0 requires NuGet 3.0 or above. So this isn't going to work on Visual Studio 2013.

Luckily, the newer System.Linq.Queryable 4.3.0 only requires NuGet 2.12 which is available for Visual Studio 2013.

So, to successfully install WindowsAzure.Storage in Visual Studio 2013 via NuGet:

  1. Download and Install NuGet 2.12 if you don't already have it. (OP has confirmed already having this version)
  2. In NuGet, Install System.Linq.Queryable 4.3.0
  3. In NuGet, Install WindowsAzure.Storage

这篇关于如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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