TFS:在源代码控制中按名称搜索文件(TFS: Search for a file by name in source control)

编程入门 行业动态 更新时间:2024-10-27 14:24:10
TFS:在源代码控制中按名称搜索文件(TFS: Search for a file by name in source control)

我在TFS的源代码管理中找不到文件,因为它只是一大麻烦。 所以我想知道是否有办法通过他们的名字搜索文件?

我听说过TFS的Power Tool可以实现搜索功能,但问题是需要安装,而且我们的系统管理员目前不可用。 还有一个简单的插件呢?

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?

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

右键单击您的收藏或团队项目 选择“在源代码中查找” 然后选择'status'或'wildcard' 你可以在那里搜索你的文件

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

tf目录命令

tf dir /recursive $/

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

tf dir /recursive $/*.cs

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

注意:根据您的来源有多大,这可能需要一些时间。

If you are using Visual Studio 2010

Right click on your collection or team project Select 'Find in source control' Then select 'status' or 'wildcard' You can search for your files there

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

tf Dir command

tf dir /recursive $/

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

tf dir /recursive $/*.cs

gets all the .cs files in all team projects

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

更多推荐

本文发布于:2023-08-04 15:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1418833.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:源代码   名称   文件   TFS   control

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!