无法确定工作区

时间:2013-01-09 20:57:32

标签: powershell tfs tfs2010 tfs-power-tools

在运行时的powershell中

Get-TfsItemHistory . -Recurse -Version C13855~C14103

我收到错误Unable to determine the source control server.

如果我正在运行tfpt.exe,我只需执行tf workspaces /s:serverUrl

如何解决此错误?

1 个答案:

答案 0 :(得分:5)

在PS中运行这4个命令修复了问题

 Add-PSSnapin Microsoft.TeamFoundation.PowerShell
 $tfsServerString = "http://server:8080/tfs/optionalName"
 $tfs = get-tfsserver $tfsServerString
 Get-TfsItemHistory $/TeamProjectName -Recurse -Version C13855~C14103 -Server $tfs | fl Comment,ChangesetId,CreationDate,Committer

此问题特定于x64 windows。