Reputation: 1436
What we tried:
$history = Get-TfsItemHistory $SearchPath -Stopafter 1 -Recurse | Select ChangesetId
But it returns not the latest version we have in the workspace. It returns latest version from server.
So how can we get the team foundation workspace version with a similar command?
(Is there even a workspace version? Because it is possible that we locally do not have of all files the latest version. For example if there is a outstanding/pending merge.)
Some additional background information:
We do not have a build server yet. We create the release basically manually and execute that script manually in order to figure out changeset number and set into version info json file of our project.
Upvotes: 0
Views: 118
Reputation: 29976
Add “-Version W" in the command:
$history = Get-TfsItemHistory $SearchPath -Stopafter 1 -Recurse -Version W | Select ChangesetId
Upvotes: 1