TFPT“无法确定工作区"时是否有解决方法?刷新缓存不起作用? [英] Is there workaround for when TFPT is "unable to determine the workspace" and refreshing the cache does not work?

查看:27
本文介绍了TFPT“无法确定工作区"时是否有解决方法?刷新缓存不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使按照 Internet 上的常规建议尝试刷新缓存的工作区设置,我也无法让 TFPT.exe 正常工作.请参阅下面的日志代表我尝试过和看到的内容.谁能解释为什么tf get"能够确定工作区,但tfpt annotate"失败?

I'm having trouble getting TFPT.exe to work at all, even after trying to refresh the cached workspace settings per the usual advice on the internet. See below for a log representative of what I've tried and am seeing. Can anyone explain why "tf get" is able to detemine the workspace, but "tfpt annotate" fails?

C:\tfsproj> set tfptcmd="C:\Program Files (x86)\Microsoft Team Foundation Server 2010 Power Tools\TFPT.exe"
C:\tfsproj> set tfcmd="C:\Program Files (x86)\Microsoft Visual Studio   10.0\Common7\IDE\TF.exe"
C:\tfsproj> %tfcmd% workspaces /s:http://tfs:8080/tfs/Apps
Collection: tfs\Apps
Workspace Owner          Computer Comment
--------- -------------- -------- ---------------------------------------------
DAVID     David_Zarlengo DAVID

C:\tfsproj> %tfcmd% get /preview
C:\tfsproj\src\:
Replacing Readme.txt

C:\tfsproj> %tfptcmd% annotate src\Readme.txt
Unable to determine the workspace

当我在 Visual Studio 2010 中编辑工作区时,工作文件夹"网格包含 3 行,其中一行是Active, $/Foo, C:\tfsproj",因此,我假设该文件夹已正确映射.

When I edit the workspace in Visual Studio 2010, the "Working folders" grid contains 3 rows, one of which is "Active, $/Foo, C:\tfsproj", therefore, I assume the folder is mapped correctly.

交叉发布在 Team Foundation Server – Power Tools &附加组件

推荐答案

重新审视这个之后,发现 'C:\tfsproj' 是一个指向 'C:\some\nested\path 的目录符号链接'.从嵌套路径运行 TFPT 命令按预期工作.

After taking a fresh look at this, it turns out that 'C:\tfsproj' is a directory symbolic link to 'C:\some\nested\path'. Running the TFPT command from the nested path works as expected.

有趣的是,TFS 工作区被映射到嵌套路径,因此令人惊讶的是 TF 命令(例如 tf get/preview)能够从别名路径正常工作.

Interestingly, the TFS workspace was mapped to the nested path, so it is surprising that TF commands (e.g. tf get /preview) were able work correctly from the alias path.

我怀疑 TFPT 在确定工作空间时没有正确遵循 NTFS 目录符号链接.

I suspect that TFPT does not follow NTFS directory symbolic links correctly when determining the workspace.

这篇关于TFPT“无法确定工作区"时是否有解决方法?刷新缓存不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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