VSTS Nuget安装程序无法通过包供稿进行身份验证 [英] VSTS Nuget Installer fails to authenticate with package feed

查看:125
本文介绍了VSTS Nuget安装程序无法通过包供稿进行身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VSTS上有一个软件包提要,提供了我在同样基于VSTS构建的解决方案中引用的几个软件包。这些构建突然在软件包还原阶段开始失败,并显示日志,表明它找不到应该还原的dlls。

I have a package feed on VSTS providing several packages that I reference in a solution that is also being built on VSTS. The builds have suddenly started failing at the package restore phase with the logs indicating that it cannot find the dlls nuget is supposed to restore.


NuGet软件包Basd.Diagnostics.0.7.0。

Restoring NuGet package Basd.Diagnostics.0.7.0.

警告:无法找到软件包 Basd.Diagnostics的版本 0.7.0。

WARNING: Unable to find version '0.7.0' of package 'Basd.Diagnostics'.

公共/私人提要在我的nuget.config中列出,它们也显示在构建日志正在使用提要... 中,因此与恢复操作无关,无法找到该包的实际提要。

The public / private feeds are listed in my nuget.config and they also show up in the build logs "Using Feeds..." so it's not a matter of the restore operation not being able to find the actual feeds for the package. It's more like it can't authenticate and therefore can't retrieve the package from the feed.

如果我查看构建定义的历史记录,则可能会发生变化。

If I look at the history for the build definition there is a change from when it last worked to now and that is this:

  "build": [
    {
      "enabled": true,
      "continueOnError": false,
      "alwaysRun": false,
      "displayName": "NuGet restore MySol.sln",
      "timeoutInMinutes": 0,
      "task": {
        "id": "333b11bd-d341-40d9-afcf-b32d5ce6f23b",
        "versionSpec": "*",
        "definitionType": "task"
      },
      "inputs": {
        "solution": "Basd.Core.sln",
        "nugetConfigPath": "nuget.config",
        "restoreMode": "restore",
        "noCache": "false",
        "nuGetRestoreArgs": "",
        "verbosity": "",
        "nuGetPath": "",
        "preCredProviderNuGet": "false"
      }
    },

现在定义中有一个 preCredProviderNuGet: false 字段。我已经在Google上进行了搜索,但是无法确定设置的方式和位置,但是我认为这会阻止对Feed进行身份验证,这也是还原操作失败的原因。

There is now a "preCredProviderNuGet": "false" field in the definition. I've googled but I can't find out how and where this is set but I'm assuming this is preventing authentication to my feed which in turn is why the restore operation fails.

那么此设置在哪里和/或如何重新打开它或将其作为条目删除?在正常工作的def中,它没有设置为true,只是不存在。

So where is this setting and/or how do I turn it back on or remove it as an entry? In the working build def, it was not set to true, it just didn't exist.

是VSTS UI相关字段还是我在nuget.config中设置的内容文件?我假设是前者,因为再次进行比较表明在nuget.config中正常工作和非正常工作之间没有任何变化。

Is it a VSTS UI related field or something I set in nuget.config files? I'm assuming the former because again doing a diff suggests nothing has changed in my nuget.config between working and non working builds.

推荐答案

这似乎是由VSTS问题引起的,目前应已解决,请尝试使用构建代理。

This seems to be caused by the VSTS issue which should be fixed by now, please try the build agent.

问题: Visual Studio Team Services的打包问题– 7/30 –已解决

这篇关于VSTS Nuget安装程序无法通过包供稿进行身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆