【问题标题】:Unable to determine workspace无法确定工作区
【发布时间】:2012-12-24 03:45:01
【问题描述】:

我运行时在 powershell 中

Get-TfsItemHistory . -Recurse -Version C13855~C14103

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

如果我正在运行 tfpt.exe,我可以简单地执行 tf workspaces /s:serverUrl

我怎样才能克服这个错误?

【问题讨论】:

    标签: powershell tfs tfs-power-tools


    【解决方案1】:

    在 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 窗口。

    【讨论】:

    • 对我们有效'此问题特定于 x64'。当我们从“Windows Powershell (x86)”运行相同的 powerhsell TFS 命令时,一切都成功了。这都是由于 TFS 2013 或用户位于 TFS 所在域的父域中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-12-08
    相关资源
    最近更新 更多