0

我需要在 Pending Changes 窗口中打开冲突选项卡:

我已经有了:

  Object customIn = null;
  Object customOut = null;
  //Show TfsPendingChanges
  m_applicationObject.ExecuteCommand("View.TfsPendingChanges", "");
  //Refresh
  m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4808, ref customIn, ref customOut);
  customOut = null;

  //Get Conflicts
  m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4832, ref customIn, ref customOut);

但是我没有找到打开 Conflict TAB 的方法!即使是获取冲突按钮 (4832) 也不会触发该 TAB !

任何人都可以帮助我吗?

4

1 回答 1

0
public void refreshPendingChanges()
{
  Object customIn = null;
  Object customOut = null;

  //Show TfsPendingChanges
  m_applicationObject.ExecuteCommand("View.TfsPendingChanges", "");

  //Refresh
  m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4808, ref customIn, ref customOut);

  //Activate Source Explorer
  m_applicationObject.DTE.Windows.Item("{99B8FA2F-AB90-4F57-9C32-949F146F1914}").Activate(); //I get this GUID recording a Macro.
  //Show Conflicts
  m_applicationObject.DTE.ExecuteCommand("File.TfsResumeConflictResolution"); 
}

感谢乍得博尔斯!说我关于 TfsResumeConflictResolution DTE 命令。

于 2013-02-18T19:07:57.140 回答