TFS 2010如何检测Visual Studio外部对文件所做的更改? [英] How to have TFS 2010 detect changes done to files outside of Visual Studio?

查看:110
本文介绍了TFS 2010如何检测Visual Studio外部对文件所做的更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Team Foundation Server 2010与Visual Studio 2010一起使用.

I'm using Team Foundation Server 2010 with Visual Studio 2010.

每当我在Visual Studio之外修改文件时,TFS似乎都不会检测到对该文件所做的更改,因此,我无法选择修改后签入文件.

Whenever I modify a file outside of Visual Studio, TFS doesn't seem to detect the change done to the file, and thus doesn't offer me the option to check-in the file after it has been modified.

如何解决?

推荐答案

如果您在Visual Studio之外工作时已与服务器建立网络连接,则最好在编辑文件之前继续检查文件,使用tf命令行客户端或使用

If you have a network connection to your server while you're working outside of Visual Studio, it's probably best to go ahead and check the file out before editing it, either using the tf command line client, or using the Windows Explorer shell integration that's available in the TFS Power Tools release. (Plus an increasing number of other tools have TFS integration that makes this automatic, but if you're just using notepad, this still needs to be a manual step.)

当然,很多时候您都在工作,并且没有可用的网络连接来签出文件.

Of course, there are many times when you're working and you don't have a network connection available that allows you to check out the files.

如果您知道自己已修改了哪些文件,则只需在Visual Studio中将它们检出,然后就可以将它们检入.

If you know what files you've modified, you can just check them out from within Visual Studio, then you'll be able to check them back in.

如果您不知道自己编辑了哪些文件,则可以通过运行tfpt online命令(也是Power Tools发行版的一部分)来检测更改.这将找到已在本地修改的文件,并从服务器中检出这些文件.

If you don't know what files you've edited, you can detect the changes by running the tfpt online command (also part of the Power Tools release). This will locate the files that have been modified locally and check these files out from the server.

这篇关于TFS 2010如何检测Visual Studio外部对文件所做的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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