由于babelfor,我们的解决方案上有一个自定义提要,以引用我们的提要。
它已经工作了一段时间,但最近,我不得不添加一个新的代理,显然,这项工作似乎失败了:
##[error]The nuget command failed with exit code(1) and error(Errors in packages.config projects
Unable to find version '9.4.0' of package 'Babel.Obfuscator'.
https://api.nuget.org/v3/index.json: Package 'Babel.Obfuscator.9.4.0' is not found on source '
##[error]Packages failed to restore
出于某些原因,它现在似乎不使用自定义nuget存储库。
以下是在我们的yml工作描述中如何配置任务:
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '$(solution)'
feedsToUse: 'select'
vstsFeed: Babel3
includeNuGetOrg: true
Babel3是Azure Devop上存储库的名称:
正如您所见,它是正确的版本(9.4.0)。
在我们的解决方案中,我们只有一个包源,也称为Babel3:
知道发生了什么吗?