TeamCity - Microsoft.Bcl.Build 依赖项 [英] TeamCity - Microsoft.Bcl.Build Dependency

查看:35
本文介绍了TeamCity - Microsoft.Bcl.Build 依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚对我的存储库提交了一些代码更改,并且突然之间(经过数周的良好).TC 构建开始失败,因为它无法下载 Microsoft.Bcl.Build.1.0.6 的 NuGet 包.

I've just committed some code changes to my repository and all of a sudden (after weeks of being fine). The TC build starts failing as it fails to download the NuGet package for Microsoft.Bcl.Build.1.0.6.

我最终不得不手动将包目录的内容复制到 TC 构建位置,这完全违背了 NuGet 的意义.

I ended up having to manually copy the contents of the packages directory to the TC build location which utterly defeats the point of NuGet.

我可以检查什么来找到问题的根本原因?

What can I check to get to the root cause of this?

关于 NuGet 的一切都在获取包的解决方案中启用.

Everything about NuGet is enabled in the solution for getting packages.

推荐答案

OK 这有点麻烦.

如果你遇到这个问题,你需要对你的存储库做一些相当丑陋的事情.

If you are having this problem you need to do something rather ugly to your repository.

确保您正在签入 packages epositories.config 文件.

Make sure you are checking in the packages epositories.config file.

然后,如果您的构建因未解决的对 Microsoft.Bcl.Build 的引用而失败,您还需要签入此包的 .targets 文件.例如:

Then if your build is failing with unresolved references to Microsoft.Bcl.Build you will need to also checkin the .targets file for this package. eg:

packageMicrosoft.Bcl.Build.x.x.x	oolsMicrosoft.Bcl.Build.targets

丑陋的...

这篇关于TeamCity - Microsoft.Bcl.Build 依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆