TFS 获取最新的不抓取引用 [英] TFS Get Latest Not Grabbing References

查看:21
本文介绍了TFS 获取最新的不抓取引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在从我的 TFS 服务器中提取存储库的新副本时遇到了问题.每次我这样做时,大部分(如果不是全部)引用都被破坏了.

I've been having issues recently with pulling down a new copy of a repository from my TFS server. Each time I do this most(if not all) of the references are broken.

必须删除并重新添加它们,或者使用 NuGet 删除并重新安装它们.

They either have to be deleted and re-added, or removed and re-installed using NuGet.

是否有一种简单的方法可以执行 Git-Clone(最喜欢的 Get-Latest-Recursive)之类的操作,以便我可以提取、构建它并继续工作?

Is there a simple way to do something like a Git-Clone (Most likley Get-Latest-Recursive) so that I can pull down a repo, build it, and being working?

推荐答案

不要在源代码管理中存储 NuGet 包.在这种情况下,它们的源控制可能不正确(错误的路径,部分源控制).如果您有一个 packages 文件夹,请将其删除并创建一个 .tfignore 文件(对于 TFVC)或一个 .gitignore 文件(对于 Git)和允许在构建时自动恢复包.

Don't store NuGet packages in source control. In this scenario, chances are they are source controlled incorrectly (wrong path, partially source controlled). If you have a packages folder, delete it and create a .tfignore file (for TFVC) or a .gitignore file (for Git) and allow the packages to be restored automatically on build.

这篇关于TFS 获取最新的不抓取引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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