NuGet恢复渐进式失败

时间:2015-04-29 06:25:40

标签: nuget nuget-package nuget-package-restore

为什么我会在3个手动触发的连续构建中获得不同的NuGet恢复构建失败完全相同的变更集?第四次建设成功了。

我对NuGet's twitter feed进行了双重检查,并且没有任何问题或停机报告。

以下命令发生这种情况:

nuget.exe restore MySolution.sln

FIRST BUILD:

 Installing 'Microsoft.Data.Edm 5.6.2'.
 Installing 'Microsoft.Data.Services.Client 5.6.2'.
 Successfully installed 'Microsoft.Data.Edm 5.6.2'.
 Successfully installed 'Microsoft.Data.Services.Client 5.6.2'.
 Installing 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3'.
 Successfully installed 'Microsoft.WindowsAzure.ConfigurationManager 2.0.3'.
 Installing 'Owin 1.0'.
 Successfully installed 'Owin 1.0'.
 Installing 'Microsoft.Data.OData 5.6.2'.
 Successfully installed 'Microsoft.Data.OData 5.6.2'.
 Installing 'System.Spatial 5.6.2'.
 Successfully installed 'System.Spatial 5.6.2'.
 Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
 Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Core'.
 Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Owin'.
 Unable to find version '3.0.1' of package 'Microsoft.Owin'.
 Unable to find version '3.0.1' of package 'Microsoft.Owin.Host.SystemWeb'.
 Unable to find version '6.0.8' of package 'Newtonsoft.Json'.
 Unable to find version '4.3.0' of package 'WindowsAzure.Storage'.

第二次建立:

Installing 'Owin 1.0'.
Successfully installed 'Owin 1.0'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Client'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Core'.
Unable to find version '5.2.3' of package 'Microsoft.AspNet.WebApi.Owin'.
Unable to find version '5.6.4' of package 'Microsoft.Data.Edm'.
Unable to find version '5.6.4' of package 'Microsoft.Data.OData'.
Unable to find version '5.6.4' of package 'Microsoft.Data.Services.Client'.
Unable to find version '3.0.1' of package 'Microsoft.Owin'.
Unable to find version '3.0.1' of package 'Microsoft.Owin.Host.SystemWeb'.
Unable to find version '3.1.0' of package 'Microsoft.WindowsAzure.ConfigurationManager'.
Unable to find version '6.0.8' of package 'Newtonsoft.Json'.
Unable to find version '5.6.4' of package 'System.Spatial'.
Unable to find version '4.3.0' of package 'WindowsAzure.Storage'.

THIRD BUILD:

 Installing 'Newtonsoft.Json 6.0.8'.
 Installing 'Microsoft.Data.Edm 5.6.4'.
 Successfully installed 'Microsoft.Data.Edm 5.6.4'.
 Installing 'Microsoft.Data.Services.Client 5.6.4'.
 Successfully installed 'Microsoft.Data.Services.Client 5.6.4'.
 Installing 'Microsoft.AspNet.WebApi.Owin 5.2.3'.
 Installing 'Microsoft.AspNet.WebApi.Client 5.2.3'.
 Successfully installed 'Microsoft.AspNet.WebApi.Owin 5.2.3'.
 Successfully installed 'Microsoft.AspNet.WebApi.Client 5.2.3'.
 Installing 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
 Successfully installed 'Microsoft.Owin.Host.SystemWeb 3.0.1'.
 Installing 'Microsoft.AspNet.WebApi.Core 5.2.3'.
 Successfully installed 'Microsoft.AspNet.WebApi.Core 5.2.3'.
 Installing 'Owin 1.0'.
 Successfully installed 'Owin 1.0'.
 Installing 'System.Spatial 5.6.4'.
 Installing 'Microsoft.WindowsAzure.ConfigurationManager 3.1.0'.
 Installing 'WindowsAzure.Storage 4.3.0'.
 Successfully installed 'Microsoft.WindowsAzure.ConfigurationManager 3.1.0'.
 Successfully installed 'System.Spatial 5.6.4'.
 Successfully installed 'WindowsAzure.Storage 4.3.0'.
 Successfully installed 'Newtonsoft.Json 6.0.8'.
 Unable to find version '5.6.4' of package 'Microsoft.Data.OData'.
 Unable to find version '3.0.1' of package 'Microsoft.Owin'.

第四次建立:

成功!

1 个答案:

答案 0 :(得分:1)

Visual Studio Online上的Host Build Controller现在隐式执行NuGet。它没有同样的问题!