How can I get the current (cached) history information for a TFS workspace when offline

时间:2015-11-12 11:17:02

标签: batch-file tfs offline

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\TF.EXE history C:\TFS\Project /r /noprompt /stopafter:1 /Version:W

will give me machine parse-able details about the current workspace version.

This works great when connected to the Corporate LAN or VPN, but fails when offline.

I know TFPT connections allows the specification of the TFS connection to be offline, but the above operation still fails.

Is there a method from command line (so to be automated) to get this detail when offline?

Doing any operation within the context of the VS IDE is not usable.

1 个答案:

答案 0 :(得分:1)

这是不可能的。 history命令返回Changeset的信息。它存储在TFS DATA层中。

脱机时,无法通过任何工具或命令连接到TFS服务器。显然,你也无法在本地计算机上获得它。