繁体   English   中英

Nuget还原程序包开始在Visual Studio Team Services构建中失败

[英]Nuget restore package started to fail in Visual Studio Team Services build

从上周四起,当我们提交代码时,我们的其中一个Team Services构建开始失败,

错误是下一个:

2016-06-20T10:15:29.7964057Z ##[error]System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: The given path's format is not supported.
2016-06-20T10:15:29.8120276Z ##[error]   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
2016-06-20T10:15:29.8120276Z ##[error]   at System.IO.Path.GetFullPath(String path)
2016-06-20T10:15:29.8120276Z ##[error]   at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
2016-06-20T10:15:29.8120276Z ##[error]   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.RestoreCommand.ProcessSolutionFile(String solutionFileFullPath, PackageRestoreInputs restoreInputs)
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.RestoreCommand.GetInputsFromFile(String projectFilePath, PackageRestoreInputs packageRestoreInputs)
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.RestoreCommand.DetermineRestoreInputs()
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__23.MoveNext()
2016-06-20T10:15:29.8120276Z ##[error]   --- End of inner exception stack trace ---
2016-06-20T10:15:29.8120276Z ##[error]   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
2016-06-20T10:15:29.8120276Z ##[error]   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.Command.Execute()
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
2016-06-20T10:15:29.8120276Z ##[error]---> (Inner Exception #0) System.NotSupportedException: The given path's format is not supported.
2016-06-20T10:15:29.8120276Z ##[error]   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
2016-06-20T10:15:29.8120276Z ##[error]   at System.IO.Path.GetFullPath(String path)
2016-06-20T10:15:29.8120276Z ##[error]   at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x)
2016-06-20T10:15:29.8120276Z ##[error]   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
2016-06-20T10:15:29.8120276Z ##[error]   at NuGet.CommandLine.RestoreCommand.ProcessSolutionFile(String solutionFileFullPath, PackageRestoreInputs restoreInputs)
2016-06-20T10:15:29.8276501Z ##[error]   at NuGet.CommandLine.RestoreCommand.GetInputsFromFile(String projectFilePath, PackageRestoreInputs packageRestoreInputs)
2016-06-20T10:15:29.8276501Z ##[error]   at NuGet.CommandLine.RestoreCommand.DetermineRestoreInputs()
2016-06-20T10:15:29.8276501Z ##[error]   at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__23.MoveNext()<---
2016-06-20T10:15:29.8276501Z ##[error]System.Exception: Unexpected exit code 1 returned from tool NuGet.exe
2016-06-20T10:15:29.8276501Z ##[error]   at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeToolCmdlet.ProcessRecord()
2016-06-20T10:15:29.8276501Z ##[error]   at System.Management.Automation.CommandProcessor.ProcessRecord()

我们还有更多版本可以正常工作,与此唯一的区别是访问了不是Nuget.org的存储库

我们曾经在构建中使用“还原软件包”选项,但是由于已弃用,我们现在使用“安装软件包”构建步骤

在此处输入图片说明

我们的Nuget.Config:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <add key="disableSourceControlIntegration" value="true" />
  </solution>
 <packageSources>
    <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
    <add key="sitefinity" value="http://nuget.sitefinity.com/nuget" />
  </packageSources>
</configuration>

这是Visual Studio Team Services上现在发生的一个已知问题。 原始问题位于https://blogs.msdn.microsoft.com/vsoservice/2016/06/18/issues-with-hosted-builds-in-visual-studio-team-services-617-investigating/

从今天起似乎已经重新出现: https : //blogs.msdn.microsoft.com/vsoservice/2016/06/20/issues-with-hosted-build-in-visual-studio-team-services-620-investigating /

我们的商店正在处理同样的问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM