2017-04-20 148 views
6

注:本answer没有帮助我,因为我没有相同的dll:System.Collections.Immutable 37年1月1日如何在Visual Studio 2013中安装WindowsAzure.Storage?

我使用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

+1

看起来您的计算机上已禁用虚拟化功能,或者处理器不支持虚拟化功能,请通过https://www.technorms.com/8208/check-if-processor-supports-virtualization – Simsons

+0

中的步骤检查它是否已启用处理器具有虚拟化功能,我使用该信息更新了答案。 – user1019042

+0

你有哪个版本的Windows? – Simsons

回答

0

显然为Visual Studio 2013,你只能使用的NuGet 2.12,

https://www.nuget.org

如果你想使用NuGet 3.x以及那些需要NuGet 3.x的软件包,则必须升级到Visual Studio 2015及更高版本。

+0

而且它每天都在变得更糟。在2015年早些时候在VS上安装[Json.NET 10.0.2](https://www.nuget.org/packages/Newtonsoft.Json/10.0.2)已经是不可能的了([''''已经失效了为'Y'定义的依赖项“](http://stackoverflow.com/q/25725545/11683)错误)。 – GSerg

+0

所以如果我买不起2015订阅,至少我运气不好,这是一个正确的说法吗? – user1019042

+1

微软对VS 2013和NuGet 2.x的技术支持将持续10年,https://support.microsoft.com/en-us/help/17959/lifecycle-policy-faq-microsoft-developer-tools和https: //support.microsoft.com/en-us/lifecycle/search/18649,但是您遇到的限制是由软件包所有者设置的,而不是Microsoft设置的。因此,您必须请求软件包所有者提供协助,或者开发自己的分支,或者使用该软件包的旧版本。当然,最简单的方法是购买最新的Visual Studio。 –

13

当您尝试通过安装在的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
+1

非常感谢你,这100%解决了问题 – vocero

+0

这也解决了我的问题 –

1

打开你的Visual Studio 2013年转到工具> NuGet包管理器>包管理器控制台

在分组管理控制台类型:

Install-Package NuGet.Client -Version 3.2.0 

我尝试过使用NuGet客户端版本3.2.0。目前的最新版本是4.3(beta)或4.2。所以我不确定它是否适用于版本4.2和4.3,但它肯定适用于NuGet 3.2.0。 NuGet> 3是SendGrid和其他软件包所需要的。