【发布时间】:2015-12-02 18:02:18
【问题描述】:
在 TFS Build 2015 期间,我在恢复 NuGet 包时遇到问题。
由于某些软件包需要 NuGet 3.x 客户端,我已将新的可编写脚本的构建配置为使用自定义 NuGet 位置,我已在其中放置了 NuGet 命令行 3.x 测试版的可执行文件 .
每当我运行构建时,所有包都无法恢复,并且 NuGet 会抛出 “无法找到版本...” 错误:
Unable to find version '1.1.10' of package 'Microsoft.Bcl'.
Unable to find version '4.0.10' of package 'System.Threading'.
Unable to find version '1.1.37' of package 'System.Collections.Immutable'.
Unable to find version '1.0.0' of package 'Owin'.
Unable to find version '4.1.0' of package 'NLog'.
Unable to find version '7.0.1' of package 'Newtonsoft.Json'.
Unable to find version '2.0.1' of package 'MongoDB.Driver.Core'.
Unable to find version '2.0.1' of package 'MongoDB.Driver'.
Unable to find version '2.0.1' of package 'MongoDB.Bson'.
Unable to find version '3.0.1' of package 'Microsoft.Owin.Security.OAuth'.
...甚至更多的软件包。我相信这个问题很清楚。
当我使用 Visual Studio 在构建机器中构建相同的解决方案时,所有包都已成功恢复。
我该如何解决这个问题?
【问题讨论】:
-
您是否安装了任何 Microsoft.CodeAnalysis NuGet 包?我做到了,我开始遇到这些错误,当我删除所有这些错误时,它又开始工作了。
-
@Schenz 我没有这个 NuGet 包
标签: visual-studio tfs nuget visual-studio-2015 tfs-2015