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

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

问题描述

注意:答案并没有帮助我,因为我没有相同的dll:System.Collections.不变的1.1.37

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

我正在使用Visual Studio 2013和.net 4.5,并遵循本教程:

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:

尝试解决依赖项"Microsoft.Data.OData(≥5.8.2)". 尝试解决依赖项"System.Spatial(= 5.8.2)". 尝试解决依赖项"Microsoft.Data.Edm(= 5.8.2)". 试图解决依赖关系"Newtonsoft.Json(≥6.0.8)". 尝试解决依赖项"Microsoft.Data.Services.Client(≥5.8.2)". 尝试解决依赖项"System.Net.Requests(≥4.0.11)". 尝试解析依赖项'System.ComponentModel.EventBasedAsync(≥> 4.0.11)'. 尝试解决依赖项"System.Dynamic.Runtime(≥4.0.0)". 尝试解决依赖项"System.Linq.Queryable(≥4.0.0)". 'System.Linq.Queryable 4.0.0'程序包要求NuGet客户端版本为'3.0'或更高版本,但当前的NuGet版本为'2.12.0.817'.

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

当我根据图像中的红色错误升级Nuget时,它将带我到Extensions and Updates要求更新此内容:

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:

我应该从哪里开始!?

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

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

推荐答案

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

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

尝试解析依赖项"System.Linq.Queryable(≥4.0.0)". "System.Linq.Queryable 4.0.0"程序包要求NuGet客户端版本为"3.0"或更高版本,但当前的NuGet版本为"2.12.0.817"

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.

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

幸运的是,较新的System.Linq.Queryable 4.3.0 仅需要NuGet 2.12,而 可用于Visual Studio2013.

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

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

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

  1. 下载并安装NuGet 2.12(如果尚未安装). (OP已确认已经具有此版本)
  2. 在NuGet中,安装 System.Linq.Queryable 4.3.0
  3. 在NuGet中,安装 WindowsAzure.Storage
  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天全站免登陆