tfs-power-tools - TFPT.exe 如何找到要在哪个工作区中工作?

标签 tfs-power-tools

在从命令中使用 tfpt 时,我收到错误:

PS D:\Main Line> tfpt uu /noget
Unable to determine the workspace.

在这里,我尝试使用“撤消未更改”命令,但我在其他命令中也看到了此错误。我所在的路径是我的 TFS 工作区中映射的确切路径。我也尝试过这个也不起作用

PS D:\Main Line> tfpt uu /recursive /noget 'D:\Main Line'
Unable to determine the workspace.

我以为只是使用当前路径来解决它,但我无法让它正常工作。有谁知道这是如何工作的吗?

最佳答案

我遇到了同样的问题,我在电源工具附带的帮助文件之一的页面底部找到了答案。 (TFPTCommandLineTool.mht)

错误

TFPT 错误:无法确定工作区

使用与版本控制配合使用的命令运行 tfpt 时,您可能会收到以下错误之一:

Unable to determine the workspace 
Unable to determine the source control server

解决方案:

  • 从已映射到 Team Foundation 源代码管理的目录中运行 tfpt.exe
  • 使用 tfworkspaces 命令更新本地工作区缓存。 tf.exe 工具位于 Visual Studio 安装文件夹的子文件夹 Common7\IDE 中。如果启动 Visual Studio 命令提示符,则可以运行以下命令(这取决于您的 TFS/VisualStudio 版本 - 您应该使用与您正在使用的 TFPT 版本匹配的版本,例如,如果如果您有 VS2015 的 TFPT,请从 VS2015 命令提示符使用 TF):
    • 对比 2008-2013 年/TFS 2008:
      • tf 工作区/s:serverURL
    • VS 2010-2013/TFS 2010(可能还有更高版本):
      • tf 工作区/collection:collectionURL
    • VS 2008/TFS 2010(可能还有更高版本):
      • tf 工作区/s:collectionURL
  • 如果您最近安装了 Visual Studio 2012,则可能需要将其连接到您在 Visual Studio 2010 中使用的同一 TFS 服务器/集合。

关于tfs-power-tools - TFPT.exe 如何找到要在哪个工作区中工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1758606/

相关文章:

visual-studio-2013 - TFTP 未被识别为内部或外部命令

tfs - tftp scorch 和 tftpd tree clean 有什么区别

tfs - TF.exe 相当于 TFPT.exe scorch

tfs-power-tools - 外壳扩展 : Not showing in Windows Explorer context

visual-studio-2012 - 如何删除 TFS 2012 中的工作项?

tfs - TFS Power Tools 缺少数据库备份工具?

tfs-power-tools - 如何使用命令行将 TFS 工作项链接到另一个工作项

tfs-power-tools - TFS Powertools 2010 Shell 与 Windows 资源管理器的集成 - 尝试连接到服务器失败

tfs - TFPT 取消搁置迁移不起作用