TFPT.exe如何找到要在其中工作的工作区? [英] How does TFPT.exe find what workspace to work in?

查看:98
本文介绍了TFPT.exe如何找到要在其中工作的工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在命令中使用tfpt时,出现错误:

In using tfpt from the command, I'm getting the error:

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

在这里,我尝试使用撤消不变"命令,但其他命令也遇到了此错误.我所在的路径是在我的TFS工作空间中映射的确切路径.我也尝试过这也不起作用

Here I'm trying to use the Undo Unchanged command, but I've seen this error with other commands too. The path I'm at is the exact path that is mapped in my TFS workspace. I also tried this which doesn't work either

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

我认为它只是使用当前路径来解决它,但是我无法使其正常工作.有人知道这是怎么回事吗?

I thought it was just using the current path to figure it out, but I can't get it to work right. Does anyone know how this works?

推荐答案

我遇到了同样的问题,在页面底部找到了The power tools随附的帮助文件中的答案. (TFPTCommandLineTool.mht)

I ran into this same issue, I found the answer at the bottom of the page in one of the help files that came with The power tools. (TFPTCommandLineTool.mht)

错误

TFPT错误:无法确定工作区

TFPT Error: Unable to determine the workspace

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

When running tfpt using a command that works with Version Control, you may receive one of the errors:

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

解决方案:

  • 从已经映射到Team Foundation源代码管理的目录中运行tfpt.exe.
  • 使用tf workspaces命令更新本地工作区缓存. tf.exe工具位于Visual Studio安装文件夹的子文件夹Common7\IDE中.如果启动Visual Studio命令提示符,则可以运行以下命令(取决于TFS/VisualStudio的版本-您应使用与所使用的TFPT版本匹配的版本,例如,您具有VS2015的TFPT,请在VS2015命令提示符下使用TF):
    • VS 2008-2013/TFS 2008:
      • tf workspaces /s:serverURL
      • Run tfpt.exe from within a directory that is already mapped to Team Foundation source control.
      • Update your local workspace cache using the tf workspaces command. The tf.exe tool is available in the subfolder Common7\IDE of your Visual Studio installation folder. If you launch a Visual Studio command prompt, you can then run the following command (which depends on your versions of TFS/VisualStudio - you should use the version that matches version of TFPT you are using, e.g. if you have TFPT for VS2015, use TF from a VS2015 command prompt):
        • VS 2008-2013 / TFS 2008:
          • tf workspaces /s:serverURL
          • tf workspaces /collection:collectionURL
          • tf workspaces /s:collectionURL

          这篇关于TFPT.exe如何找到要在其中工作的工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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