如何解决? 解决方案 如果您在 Visual Studio 之外工作时有到服务器的网络连接,则最好在编辑之前先检查文件,要么使用 tf 命令行客户端,要么使用 TFS 电动工具 版本.(此外,越来越多的其他工具具有 TFS 集成,可以自动执行此操作,但如果您只是使用记事本,这仍然需要手动执行.)当然,很多时候您在工作时没有可用的网络连接来查看文件.如果您知道自己修改了哪些文件,只需在 Visual Studio 中检出它们,然后您就可以重新检入它们.如果您不知道您编辑了哪些文件,您可以通过运行 tfpt online 命令(也是 Power Tools 版本的一部分)来检测更改.这将定位已在本地修改的文件并从服务器检出这些文件.I'm using Team Foundation Server 2010 with Visual Studio 2010.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.How can this be solved? 解决方案 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.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.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 之外的文件所做的更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-04 20:29