azure-devops - 如何在 VSTS 构建上设置 myget 凭据?

标签 azure-devops azure-pipelines myget

如何在 Visual Studio Team Services 构建过程中设置凭据以使其访问我的私有(private) MyGet 源?由于它不起作用,我的所有构建都开始失败。我在网上读过一些东西,但它们指的是旧的使用nuget的方式,我使用的是VS15的默认方式。

我读过这些:

错误如下: enter image description here

最佳答案

嗯,我明白了。 我解决的方法是:

  1. 创建了本地 nuget.config 文件
  2. 使用命令将我的私有(private) Feed 保存到该文件 [1]
  3. 已添加到源代码管理
  4. 在 VSO 内的构建定义上设置 nuget.config 文件路径

[1]

nuget setapikey [apikey] -source [feedUrl] -configFile [configFilePath]
nuget sources add|update -Name [name] -source [feedUrl] -User [username] -pass [password] -configFile [configFilePath] -StorePasswordInClearText

关于azure-devops - 如何在 VSTS 构建上设置 myget 凭据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38277260/

相关文章:

azure-devops - ADF Pipeline 触发 DevOps 上的部署

azure - azure 上的 .NET Core 3 Linux 应用程序中出现 SSL 错误

azure-pipelines - 在 Azure Pipelines 中,如何在其他任务运行时执行后台任务?

.net - 如何安装 MyGet 包?

nuget - 如何获取myget包源码?

tfs - 如何授予在 VSO 中管理测试计划的权限?

azure-devops - TFS 2015 内部版本 : NuGet restore from an internal repository

git - 如何在 VSTS Rest API 中获取提交的分支名称?

Azure DevOps 管道无法识别 Bash 脚本中的管道变量(不使用 YAML 文件)

c# - MyGet 和 Cake,生成版本号