在 Team Foundation Server 中查找未添加的文件 [英] Find unadded files in Team Foundation Server

查看:21
本文介绍了在 Team Foundation Server 中查找未添加的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用团队基础服务器进行源代码管理.我经常将文件放入我的项目中(在源代码控制下)并且忘记添加"它们就 TFS 而言.也有一些情况 TFS 不选择新文件(在您的项目中复制和粘贴文件).

We're using team foundation server for our source control. I frequently put files into my project (under source control) and forget to "add" them as far as TFS is concerned. There are also cases where TFS doesn't pick up new files (copy and paste a file in your project).

有没有一种方法可以列出所有未标记为添加"的文件,以便我可以验证所有预期的签入都已发生?

Is there a way I can list all of the files that have not been marked as "add" so that I can verify that all of the intended check-ins take place?

这让我发疯!我们还没有为这个项目设置持续集成,我一直缺少文件.直到有人问我文件在哪里,我才知道.

This is driving me crazy! We don't have continuous integration set up yet for this project, and I keep missing files. I don't find out until someone asks me where the file in.

在 Subversion 中,这非常简单.

In Subversion, this was dead simple.

我知道一种解决方案是签出第二份副本,但这并不是真正的最佳解决方法.

I know one solution is to checkout a second copy, but that's not really an optimal workaround.

推荐答案

您可能需要确保安装了最新版本的 TFS 客户端 (VS 2008 SP1),因为这样可以更轻松地处理文件.另外,请查看 TFS Power Tools - 特别是在线的 tfpt命令.

You might want to make sure you have the latest version of the TFS client installed (VS 2008 SP1) as that makes it much easier to work with files. Also, take a look at the TFS Power Tools - especially the tfpt online command.

tfpt 命令行有一堆方便的 TFS 实用程序.安装 TFS 强力工具后,在 Visual Studio 2008 命令提示符下键入tfpt help"以获取列表.如果您在解决方案的根目录中执行tfpt online/r",它将检测本地文件系统中可写的文件,并为它们挂起添加或编辑.您可能希望限制该命令,使其仅查找源文件 - 例如tfpt online/r *.cs".

The tfpt command line has a bunch of handy TFS utilities. Once you install the TFS power tools, type "tfpt help" at a Visual Studio 2008 Command Prompt to get a list. If you do "tfpt online /r" in the root of your solution it will detect the files that are writeable in your local file system and pend adds or edits for them. You might want to limit the command so that it only looks for source files - "tfpt online /r *.cs" for example.

这篇关于在 Team Foundation Server 中查找未添加的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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