如何使用YAML从Artifactory恢复软件包

时间:2019-02-20 17:11:59

标签: azure-devops artifactory

指南here提供了以下示例代码:

- task: DotNetCoreCLI@2
  inputs:
    command: restore
    projects: '**/*.csproj'
    feedsToUse: config
    nugetConfigPath: NuGet.config    # Relative to root of the repository
    externalFeedCredentials: <Name of the NuGet service connection>

但是我很难知道需要什么来代替<Name of the NuGet service connection>甚至是NuGet.config

Artifactory上的指南没有使用YAML甚至没有提及它,所以我不知道它是否可能。

我的问题:以上可能吗?如果可以,上面的脚本中应该包含什么内容?

1 个答案:

答案 0 :(得分:2)

<Name of the NuGet service connection>就是它的意思。在您的项目中创建一个指向NuGet提要的service connection,然后在其中按名称引用。

相关问题