我在使用TFPT.exe时遇到了问题,即使按照互联网上的常规建议刷新了缓存的工作区设置,它仍无法正常工作。请参见下面的日志,了解我尝试过和看到的内容代表。有人能解释一下为什么“tf get”能够确定工作区,而“tfpt annotate”却失败了吗?
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中编辑工作区时,"Working folders"(工作文件夹)表格中包含3行,其中一行是"Active, $/Foo, C:\tfsproj",因此我认为该文件夹已正确映射。