TFS:在源代码管理中按名称搜索文件 [英] TFS: Search for a file by name in source control

查看:27
本文介绍了TFS:在源代码管理中按名称搜索文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 TFS 的源代码管理中找不到文件,因为它简直是一团糟.所以我想知道有没有办法按文件名搜索文件?

I can't find a file in our source control of the TFS because it's simply a big mess. So I want to know if there is a way to search for files by their name?

我听说过 TFS 的 Power Tool 可以启用搜索功能,但问题是必须安装它,而我们的系统管理员目前不可用.那么可能存在一个简单的插件吗?

I've heard of the Power Tool for TFS which enables search functionality but the problem is that it has to be installed and our sysadmin is currently not available. So does maybe a simple plugin exist?

推荐答案

如果您使用的是 Visual Studio 2010

If you are using Visual Studio 2010

  • 右键单击您的收藏或团队项目
  • 选择在源代码管理中查找"
  • 然后选择状态"或通配符"
  • 您可以在那里搜索您的文件

以下将列出您存储库中的所有项目,而无需检查它们

The following will list all the items in your repository without checking them out

tf 目录命令

tf dir /recursive $/

您也可以传入您正在搜索的项目,例如

you can pass in the item you are searching for also e.g.

tf dir /recursive $/*.cs

获取所有团队项目中的所有 .cs 文件

gets all the .cs files in all team projects

注意:这取决于您的来源有多大,这可能需要一些时间.

Note: depending on how big your source is, this could take sometime.

这篇关于TFS:在源代码管理中按名称搜索文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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