Error build VSTS: ## [error] Error: Unable to locate the 'nuget'

Error build VSTS: ## [error] Error: Unable to locate the 'nuget'

我使用 C# + SpecFlow 创建了一个测试项目,我正在尝试通过 VSTS 构建解决方案,但是在 Nuget Restore 中出现以下错误。

2018-08-07T15:29:39.6678023Z ##[error]Error: Unable to locate the 'nuget' [b3be7473-68ea-4a81-bfc7-9530baaa19ad] area. The service containing that area may not be available in your region. 2018-08-07T15:29:39.6739350Z ##[error]Packages failed to restore

有人知道怎么帮我解决吗?我已经尝试查看论坛,但 none 的替代方案解决了我的问题。

我遇到了同样的问题,使用 NuGet 还原版本 1.x 解决了它。

是的,我使用的是 .NET Core,它只能通过将版本降级到 1 来工作。

虽然我长期以来一直在使用日常构建、添加功能和持续交付管道,但直到今天我才遇到这个问题。

因为更改版本对我来说不是一个选项 - 我通过禁用构建中的恢复步骤来解决这个问题。

无论如何构建步骤都会进行恢复。

Microsoft 已通知此问题。希望这个问题能尽快得到解决。

Possible customer impacting event in all regions – 08/08 – Investigating

我们已经为此推出了修复程序。抱歉打扰了。