How can I open the TFS changeset details dialog view using a Visual Studio add-in?

前端 未结 2 1884
你的背包
你的背包 2020-12-29 12:22

I have a specific artifact in TFS, say changeset \"123\", which has the URI \"vstfs:///VersionControl/Changeset/123\". I realized that the link \"ht

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-29 12:46

    In VS 2015 you can use the following code taken from here

    public void ViewChangesetDetails(int changesetId)
    {
            ITeamExplorer teamExplorer = this.GetService();
            if (teamExplorer != null)
            {
                teamExplorer.NavigateToPage(new Guid(TeamExplorerPageIds.ChangesetDetails), changesetId);
            }
    }
    

提交回复
热议问题