我有一个库,我想搜索所有引用该库的项目。
所有项目都在主分支中。我们正在使用Git和VSTS。
有没有办法搜索所有项目?
使用Code Search(正如Wouter所说)可以使您通过所有团队项目(或团队项目)快速搜索引用。
转到团队项目代码选项卡(https://account.visualstudio.com/_git/project) - >输入要搜索的关键字。
如搜索packages\Microsoft.Net
,它将列出代码选项卡中包含packages\Microsoft.Net
的所有文件。你还可以指定回购,分支,路径等。
转到VSTS主页(https://account.visualstudio.com/_projects) - >输入要搜索的关键字。
如果您还搜索packages\Microsoft.Net
,那么它将列出所有团队项目中的所有相关文件。您还可以指定项目,仓库,分支和路径等。
你也可以参考文件Search your code。