0

[保留中の変更]ウィンドウで[競合]タブを開く必要があります。

私は既に持っています:

  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を開く方法が見つかりませんでした!Get Conflictsボタン(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"); 
}

Chad Bolesに感謝します!それはTfsResumeConflictResolutionDTEコマンドについて私に言いました。

于 2013-02-18T19:07:57.140 に答える