有没有办法让获取最新的 TFS 表现得像获取最新签入的特定版本 [英] Is there a way to make Get Latest in TFS behave like Get Specific Version of the latest checkin

查看:24
本文介绍了有没有办法让获取最新的 TFS 表现得像获取最新签入的特定版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在 Visual Studio 中从 TFS 2012 中获取最新.它真的不是最新的.它的作用是更新解决方案文件,以便我的队友添加的新内容显示为带有警告标记的内容,所以说它不存在.

Whenever I Get Latest from TFS 2012 in Visual Studio. It doesn't really get latest. what it does is update the solution file so that new stuff added by my team mates shows up with a warning mark on in so say that its not there.

FFS 不是我让 TFS 帮我弄的!

FFS DIDN'T I JUST ASK TFS TO GET IT FOR ME!

显然,TFS 根据一些奇怪的规则做出决定,使生活变得过于复杂,这些规则我不知道我在要求什么,并且会给我它认为正确的东西.

Apparently TFS overcomplicates life by deciding based on some strange rules that I don't know what I am asking for and will give me what it thinks is right.

就我而言,自从我上次从服务器获取文件以来,文件是否已被修改 GET IT!它已经改变了.为什么会来源

As far as I am concerned if the file has been modified since I last got it from the server GET IT! IT HAS CHANGED. Why would the source

无论如何,我想知道是否有办法添加上下文菜单命令来触发最新签入的获取特定版本?

Anyway I am wondering if there is a way to add a context menu command that will fire a Get Specific Version of the latest checkin?

它会为我节省一些失败的构建和点击,而且通常会被 TFS 中的源代码控制系统激怒.

It would save me a few failed builds and clicks and just generally being irritated by the Source Control System in TFS.

推荐答案

当您在解决方案上选择获取最新时,它将获得最新的解决方案.它不会获得添加到服务器解决方案中的新项目.

When you select Get Latest on the solution, it will get the latest of the solution. It won't get new items that were added to the solution on the server.

相反,打开源代码管理资源管理器并在包含解决方案的文件夹上执行获取最新信息.这将获得所有内容,解决方案文件、新文件等.

Instead, open Source Control Explorer and execute a Get Latest on the folder containing the solution. This will get everything, the solution file, new files, etc.

至于为什么会这样,我只能推测:Visual Studio 解决方案不强制执行严格的文件系统布局,并且可以将文件系统中的任何项目放入解决方案中.因此,当您在解决方案上选择获取最新信息时,TFS 提供程序将识别您的解决方案中也在 TFS 中的每个项目,并在这些路径上执行获取最新信息.通过这样做,将排除新项目(因为它们的路径未在 get 中指定.)

As to why this is the case, I can only speculate: Visual Studio solutions don't enforce a strict filesystem layout and one can place items anywhere in my filesystem into a solution. So when you select Get Latest on a solution, the TFS provider will identify each item in your solution that is also in TFS and execute a Get Latest on those paths. By doing this, new items would be excluded (because their paths were not specified in the get.)

如果您要对路径本身或包含它们的文件夹执行获取最新信息",则将包含新项目包含在内,但是您无法知道这些新项目的位置,直到您已经完成了解决方案文件的获取.

New items would be included if you were to do a Get Latest on the paths themselves or the folder that contains them, however you can't know where these new items are until you've already done a get of the solution file.

因此,如果您的解决方案设置为所有项目都包含在某个单一目录中(当然大多数是),那么最简单的方法是使用源代码管理资源管理器"中的获取最新信息".

So, if your solutions are set up such that all items are contained in some single directory (most, of course, are) then it's easiest just to use Get Latest from the Source Control Explorer.

这篇关于有没有办法让获取最新的 TFS 表现得像获取最新签入的特定版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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