如何使用YAML从Artifactory还原软件包 [英] How to restore packages from Artifactory using YAML
问题描述
The guide here gives the example code below:
- 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>
但是我很难知道需要什么来代替< NuGet服务连接的名称>
,甚至是 NuGet.config
.
but I'm struggling to know what is required in place of <Name of the NuGet service connection>
or even NuGet.config
.
关于
The Guide on Artifactory doesn't use YAML or even mention it so I don't know if it is even possible.
我的问题:以上可能吗?如果可以,上面的脚本中应该包含什么内容?
My question: Is the above possible, and if so, what should I have in the script above?
推荐答案
< NuGet服务连接的名称>
就是上面所说的.去创建一个服务连接在您的项目中指向NuGet提要,然后在其中通过名称进行引用.
<Name of the NuGet service connection>
is exactly what it says. Go create a service connection in your project that points to the NuGet feed, then reference it by name there.
这篇关于如何使用YAML从Artifactory还原软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!