我正在使用竹子做的建设ASP .NET项目和下面提到的步骤。
MSBuild与亚特兰蒂斯竹子
在运行构建之后,我发现它在下载nuget包时失败了,下面的消息出现在汇总选项卡上。
没有找到失败的测试,可能出现编译错误。

所以我查看了log选项卡,下面是我得到的
2016年8月10日09:59:09无法找到软件包“Microsoft.Owin.Security.Google”的3.0.1版本。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package 'Microsoft.Owin.Security.Google.3.0.1‘源’C:\user\user\AppData\Local\NuGet\Cache‘。2016年8月10日09:59:09无法找到“Microsoft.Owin.Security.MicrosoftAccount”软件包的3.0.1版本。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package 'Microsoft.Owin.Security.MicrosoftAccount.3.0.1‘在源’C:\user\user\AppData\Local\NuGet\Cache‘上找不到。2016年8月10日09:59:09无法找到软件包“Microsoft.Owin.Security.OAuth”的3.0.1版本。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package 'Microsoft.Owin.Security.OAuth.3.0.1‘源’C:\user\user\AppData\Local\NuGet\Cache‘。2016年8月10日09:59:09无法找到“Microsoft.Web.Infrastructure”软件包的版本1.0.0。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package‘Microsoft.Web.红外.1.0.0’源‘C:\user\user\AppData\Local\NuGet\Cache’。2016年8月10日09:59:09无法找到“Microsoft.Owin.Security.Twitter”软件包的3.0.1版本。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache:包‘Microsoft.Owin.Security.witter.3.0.1’源‘C:\user\user\AppData\本地\NuGet\Cache’。2016年8月10日09:59:09无法找到“现代派”的版本“2.6.2”。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package‘现代派2.6.2’源‘C:\user\user\AppData\Local\NuGet\Cache’。2016年8月10日09:59:09无法找到软件包“回复”的版本“1.2.0”。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package 'Respond.1.2.0‘源’C:\user\user\AppData\Local\NuGet\Cache‘。2016年8月10日09:59:09无法找到“WebGrease”软件包的版本“1.5.2”。2016年8月10日09:59:09 C:\user\user\AppData\Local\NuGet\Cache: Package‘WebGree.1.5.2’源‘C:\user\user\AppData\Local\NuGet\Cache’。2016年8月10日09:59:09
使用的NuGet文件:10-8月-2016年09:59:09 NuGet 10-2016年09:59:09
使用:10-2016年8月-2016年09:59:09 C:\user\user\AppData\Local\NuGet\Cache 10-2016 09:59:09
10-2016年8月-2016年09:59:09安装:10-2016年8月-2016年09:59:09 5 packages.config项目包
发布于 2016-08-10 14:44:12
我能够通过向nugate命令中添加源参数来解决这个问题。
“C:\user\user\竹-home\nuget\nuget.exe”restore "${bamboo.build.working.directory}\atlassianaspnet\atlassianaspnet.sln“-source "https://www.nuget.org/api/v2;https://www.nuget.org/api/v3”
https://stackoverflow.com/questions/38875974
复制相似问题