TFS Get Latest Not Grabbing References

2019-06-13 19:22发布

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.

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

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?

1条回答
ゆ 、 Hurt°
2楼-- · 2019-06-13 19:43

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.

查看更多
登录 后发表回答