答案 0 :(得分:0)
Microsoft.VisualStudio.TeamFoundation.VersionControl.dll包含此功能。我能够使用以下代码打开历史记录窗口:
VersionControlExt versionControlExt = dte.GetObject("Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlExt") as VersionControlExt;
versionControlExt.History.Show("$/Path/To/Item", VersionSpec.Latest, 0, RecursionType.Full);