0

Is there a way to find out version (changesetid) of local file (workspace version)?

In visual studio I can compare file with workspace version so there must be a way to find out what is current workspace version.

Liero
  • 25,216
  • 29
  • 151
  • 297
  • 1
    tf history . /r /noprompt /stopafter:1 /version:W Dupelicate of: http://stackoverflow.com/questions/7748039/get-current-changeset-id-on-workspace-for-tfs – rerwinX Feb 09 '16 at 10:45

1 Answers1

1

There are two methods that come to mind https://msdn.microsoft.com/en-us/library/microsoft.teamfoundation.versioncontrol.client.workspace.getlocalversions(v=vs.120).aspx

And https://msdn.microsoft.com/en-us/library/hh723884(v=vs.120).aspx

The former gives you only version and is super fast. The latter returns much more info. They are else exposed through cmd, tf localversions and tf items i think

MichalMa
  • 1,230
  • 6
  • 14