Visual Studio Autodeploy - nuget 命令失败,退出代码 (1) 和错误 NU1102

Visual Studio Autodeploy - The nuget command failed with exit code(1) and error NU1102

我在升级到 Telerik 2019.1.220 并尝试自动部署到 IIS 时遇到此错误。

(在我的工作站上运行良好,但在自动部署时出现此错误)

The nuget command failed with exit code(1) and error(NU1102: Unable to find package Telerik.UI.for.AspNet.Core with version (>= 2019.1.220) - Found 3 version(s) in 0a59f170-36b0-42ba-bd72-49a72d6553d6 [ Nearest version: 2018.2.620 ] - Found 1 version(s) in NuGetOrg [ Nearest version: 2016.3.914 ] Errors in D:\a\s\IT.Web\IT.Web.csproj NU1102: Unable to find package Telerik.UI.for.AspNet.Core with version (>= 2019.1.220) - Found 3 version(s) in 0a59f170-36b0-42ba-bd72-49a72d6553d6 [ Nearest version: 2018.2.620 ] - Found 1 version(s) in NuGetOrg [ Nearest version: 2016.3.914 ])

Packages failed to restore

看起来 Nuget 有 2019.1.220: https://www.nuget.org/packages/KendoUICore/

我已经使用 telerik 下载器直接在服务器上安装了 2019.1.220,但仍然没有成功。感谢任何帮助,谢谢!

Visual studio 错误输出:

一般来说,ASP.NET Core 的 Telerik UI 是通过私有 NuGet 提要分发的。所以,为了能够成功恢复包:

1) 如果使用 Azure DevOps 来管理包,则必须在 Azure 中正确设置 Telerik 私有订阅源。请参阅以下可能对配置提要有帮助的资源:

2) 如果您想手动连接到私人订阅源并恢复包,请遵循此文档文章: