TeamCity-Microsoft.Bcl.Build依赖关系 [英] TeamCity - Microsoft.Bcl.Build Dependency
问题描述
我刚刚对存储库进行了一些代码更改,然后突然之间(经过数周的检查). 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.
我最终不得不手动将packages目录的内容复制到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 This is a bit of a nasty issue.
如果遇到此问题,则需要对存储库做一些相当难看的事情.
If you are having this problem you need to do something rather ugly to your repository.
确保您正在检入packages\repositories.config
文件.
然后,如果您的构建因未解析的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:
package\Microsoft.Bcl.Build.x.x.x\tools\Microsoft.Bcl.Build.targets
可怕的...
这篇关于TeamCity-Microsoft.Bcl.Build依赖关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!