azure-devops - 如何使用 YAML 从 Artifactory 恢复包
问题描述
这里的指南给出了下面的示例代码:
- 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,甚至没有提到它,所以我不知道它是否可能。
我的问题:以上是否可能,如果可以,我应该在上面的脚本中包含什么?
解决方案
<Name of the NuGet service connection>
正是它所说的。在您的项目中创建一个指向 NuGet 提要的服务连接,然后在那里按名称引用它。
推荐阅读
- html - 用于修复/浮动左侧输入面板的 css 样式
- python - 如何解决时间复杂度为 O(nlogn) 或 O(n) 的 Python 中的对和问题?
- python - How to expand a row of tuples in a pandas DataFrame into multiple rows as a multi-index?
- reactjs - 如何在使用 react-image-crop 时缩放图像?或者是否有其他库可以实现相同的功能
- python - 将 HSI 转换回 RGB
- arrays - 如何解决“参数(编号 [])与 SpreadsheetApp.Range.setValues 的方法签名不匹配”错误
- c# - 如何将 Microsoft Bing Speech API 文本语音功能与 MS Teams 应用程序集成
- android - GoogleSIgnInClient 注销后自动登录
- java - How to resolve the sonar issue "Correctness - This method continues a loop after finding an equality condition "
- reactjs - React material-ui选择菜单上的findDOMNode错误