繁体   English   中英

NuGet 无法在 TeamCity 10 上恢复 AutoMapper 5.1.1

[英]NuGet cannot restore AutoMapper 5.1.1 on TeamCity 10

使用 NuGet 3.3.0,我们在恢复 AutoMapper 5.1.1 时会收到以下错误。 其他包恢复成功:

[11:49:53]  [restore] Unable to find version '5.1.1' of package 'AutoMapper'.
[11:49:53]  [restore] Process exited with code 1

有一个问题,我们无法在开发机器上的 Visual Studio 2013 中恢复这个包,除非我们更新 NuGet 包管理器。

如果我们在 TeamCity 服务器上的 Visual Studio 2013 中构建项目,则该包恢复成功,这使我们相信它是构建代理上的 NuGet 版本需要更新。

我们尝试通过 TeamCity 上传NuGet.CommandLine.3.4.3.nupkg | 工具菜单,但是 TeamCity 抱怨它不是有效的 NuGet 包,因为它不包含tools\\NuGet.exe ,即使它包含!

我们确实成功上传了Nuget.CommandLine.3.6.0-beta1.1839.nupkg ,但是当构建步骤尝试运行时,这给了我们一个不同的错误。

所以我们被困住了。 有没有人遇到过这个问题并设法解决了它?

NuGet.CommandLine.3.5.0-beta-final.nupkg上传到 TeamCity(管理 => 工具 => NuGet.exe => 添加版本)并将 NuGet 构建步骤设置为版本3.5.0-beta-final成功解决了我们的问题.

我从: https : //dotnet.myget.org/feed/nuget-build/package/nuget/NuGet.CommandLine/3.5.0-beta-final得到包

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM