【发布时间】:2017-10-20 11:16:44
【问题描述】:
我们正在使用 Nuget Installer 步骤来恢复 TFS 构建中丢失的 nuget 包,此步骤失败并出现以下错误:
E:\Builds\_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.29\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe restore -NonInteractive E:\Builds\test .sln MSBuild 自动检测:使用来自“C:\Windows\Microsoft.NET\Framework\v3.5”的 msbuild 版本“3.5”。 E:\Builds\test.sln 解析解决方案文件时出错:系统找不到指定的文件。 (来自 HRESULT 的异常:0x80070002) 错误:E:\Builds\Agent2017Update1_tasks\NuGetInstaller_333b11bd-d341-40d9-afcf-b32d5ce6f23b\0.2.29\node_modules\nuget-task-common\NuGet\3.3.0\NuGet.exe 失败,返回码:1 软件包安装失败
错误消息似乎令人困惑,因为指定的文件存在于构建代理中。
TFS 构建代理版本:2.112.0 TFS 版本:TFS 2017 更新 1
【问题讨论】: