gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 12:13:59 24 4
gpt4 key购买 nike

从上周四开始,当我们提交代码时,我们的团队服务构建之一开始失败,

错误是下一个:

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 的存储库

我们曾经在构建中使用恢复包选项,但由于已被弃用,我们现在使用安装包构建步骤

enter image description here

我们的 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 构建中,Nuget 还原包开始失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37920371/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com