在命令中使用tfpt时,我收到错误:
PS D:\Main Line> tfpt uu /noget
Unable to determine the workspace.
Run Code Online (Sandbox Code Playgroud)
这里我试图使用Undo Unchanged命令,但我也看到了其他命令的错误.我所在的路径是在我的TFS工作区中映射的确切路径.我也试过这个也行不通
PS D:\Main Line> tfpt uu /recursive /noget 'D:\Main Line'
Unable to determine the workspace.
Run Code Online (Sandbox Code Playgroud)
我认为只是使用当前路径来解决它,但我无法让它正常工作.有谁知道这是如何工作的?
小智 60
我遇到了同样的问题,我在电源工具附带的一个帮助文件中找到了页面底部的答案.(TFPTCommandLineTool.mht)
错误
TFPT错误:无法确定工作区
使用与版本控制一起使用的命令运行tfpt时,您可能会收到以下错误之一:
Unable to determine the workspace
Unable to determine the source control server
Run Code Online (Sandbox Code Playgroud)
解决方案:
tfpt.exe
从已映射到Team Foundation源代码管理的目录中运行. tf workspaces
命令更新本地工作空间缓存.该tf.exe
工具位于Common7\IDE
Visual Studio安装文件夹的子文件夹中.如果启动Visual Studio命令提示符,则可以运行以下命令(这取决于您的TFS/VisualStudio版本 - 您应该使用与您正在使用的TFPT版本匹配的版本,例如,如果您有VSFP15的TFPT,请使用来自VS2015命令提示符的TF):
tf workspaces /s:serverURL
tf workspaces /collection:collectionURL
tf workspaces /s:collectionURL
Nit*_*kin 19
使用时请tf workspaces /s:serverURL
确保使用正确的tf.exe
!
我遇到了同样的问题而被卡住,因为我使用的tf.exe
是:
\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
而不是来自:
\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
归档时间: |
|
查看次数: |
36020 次 |
最近记录: |