即使在为Visual Studio 2017 安装Productivity Power Tools扩展之后,我仍然无法运行tfpt.exe来执行此帖子上建议的命令:
C:\Development> tfpt unshelve "ShevesetName;UserName" /migrate /source:"$/Project/Source" /target:"$/Project/Target"
Run Code Online (Sandbox Code Playgroud)
我在哪里可以找到这个程序?
即使尝试按照互联网上的常规建议刷新缓存的工作区设置,我也无法让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
Run Code Online (Sandbox Code Playgroud)
当我在Visual Studio 2010中编辑工作区时,"工作文件夹"网格包含3行,其中一行是"活动,$/Foo,C:\ tfsproj",因此,我假设文件夹已正确映射.