質問

In powershell when I run

Get-TfsItemHistory . -Recurse -Version C13855~C14103

I get error Unable to determine the source control server.

If I were running tfpt.exe I could simply do tf workspaces /s:serverUrl.

How can I get past this error?

役に立ちましたか?

解決

Running these 4 commands in PS fixed the issue

 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

This issue is specific to x64 windows.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top