在 Visual Studio 和 TFS 中有没有办法查看签出到本地工作区的项目? [英] Is there a way in Visual Studio and TFS to view items checked out to local workspaces?

查看:44
本文介绍了在 Visual Studio 和 TFS 中有没有办法查看签出到本地工作区的项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解 TFS 本地工作区旨在帮助用户在未连接到 TFS 服务器时更无缝地工作;但是,与使用服务器工作区不同的是,我无法从 Visual Studio 源代码管理资源管理器中看到文件的状态.我们的团队 90% 的时间都连接到 TFS 服务器.似乎本地工作区在连接时应该能够将文件签出状态传达回 TFS 服务器.作为团队经理,我想知道团队成员目前在几种情况下签出了哪些文件,同时仍保留本地工作区提供的灵活性.

  1. 我想知道团队成员检查(或不检查)代码的频率.

  2. 在检查文件之前,我想知道是否有人已经在处理文件.

  3. 我想通过了解哪些文件未签入更改来处理笔记本电脑丢失/损坏的情况.

有没有办法使用 Visual Studio 源代码管理资源管理器或其他工具来做到这一点?

解决方案

通常,当您导航到 Source Control Explorer 中的特定项目时,检出的项目会自动显示.参考下面的截图.

<块引用>

  1. 我想知道团队成员多久检查一次他们的代码(或不是).

您只需要检查变更集历史记录.

<块引用>

  1. 我想知道是否有人在检查文件之前已经在处理它.

正如我上面提到的,只需导航到 Source Control Explorer 中的特定项目,它就会在 Pending Change 列中显示状态.

<块引用>

  1. 我想通过了解哪些文件未签入更改来处理笔记本电脑丢失/损坏的情况.

一般情况下,Pending Change列下显示状态的文件是未签入更改的文件.

但是有一个工具叫做

I understand that TFS Local Workspaces are designed to help users work more seamlessly when not connected to the TFS server; however, unlike when using Server Workspaces, I cannot see the status of a file from Visual Studio Source Control Explorer. Our team is connected to the TFS Server 90% of the time. It seems that Local Workspaces should be able to communicate file checked-out status back to the TFS Server when connected. As a team manager I would like to know what files team members currently have checked out in several scenarios, while still retaining the flexibility offered by Local Workspaces.

  1. I want to know how often team members are checking in their code (or not).

  2. I want to know if someone is already working on a file before checking it out as well.

  3. I want to handle a lost/broken laptop scenario by knowing which files had un-checked-in changes.

Is there a way to do this with Visual Studio Source Control Explorer or another tool?

解决方案

Generally the items checked out will display automatically when you navigate to the specific items in Source Control Explorer. Reference below screenshot.

  1. I want to know how often team members are checking in their code (or not).

You just need to check the changesets history.

  1. I want to know if someone is already working on a file before checking it out as well.

Just navigate to the specific items in Source Control Explorer as I mentioned above, it will shown the status in Pending Change column.

  1. I want to handle a lost/broken laptop scenario by knowing which files had un-checked-in changes.

Generally the files with status displayed under Pending Change column are the files which have un-checked-in changes.

However there is a tool called Team Foundation Sidekicks which is a suite of tools ( includes Code Review Sidekick, Shelveset Sidekick, Labels Sidekick, History Sidekick, Workspace Sidekick and Status) for TFS administrators and advanced users providing rich GUI for administrative and advanced version control tasks, you can use it to check and track the things you required. (Unfortunately it's no available for VS 2017, the latest version 6.0 only works for VS 2015)

这篇关于在 Visual Studio 和 TFS 中有没有办法查看签出到本地工作区的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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