locked
How to customize TFS source control explorer contextual menu? RRS feed

Answers

  • Sorry, I meant to reply to this but have been too busy. I am on my mobile now, so this will be somewhat brief. You want to use a search engine to lookup both EnableVSIPLogging and VSCTPowerToy, with those two together you can solve your problem. A more detailed explanation would have to wait until I have more free time (next week?)

    Ryan

    • Proposed as answer by Ego Jiang Tuesday, July 31, 2012 6:58 AM
    • Marked as answer by Ego Jiang Friday, August 3, 2012 8:06 AM
    Saturday, July 28, 2012 12:36 AM

All replies

  • Hi AndrejsM,

    You can create a add-ins. Which you can refer to:

    http://msdn.microsoft.com/en-us/library/80493a3w

    http://msdn.microsoft.com/en-us/vstudio/bb968855.aspx

    And you can realize your codes in it.

    After finishing your add-ins. You can add this add-in to the menu as the steps follow:

    • Tools->Customize->Commands
    • Choose the correct context menu
    • Add Commands choose your add-in

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, July 26, 2012 7:21 AM
  • Hi, thanks for the answer. I know how to make and addin and a package. It's customizing the source control explorer contextual menu that I don't know how to do. Can you help me with that? Thanks.
    Thursday, July 26, 2012 12:37 PM
  • Hi AndrejsM,

    I know you want to add your custom item to the context menu.

    As I said, you can do these steps as follow below to add:

    • Tools->Customize->Commands
    • Choose the correct context menu(I think the menu you want is
      Team Foundation Context Menus|Source Control Explorer. )
    • Add Commands choose your add-in

    Here is a example to add an add-in to menu.

    Then in the menu it will appare:

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Friday, July 27, 2012 6:47 AM
  • Thanks. I realize now that I didn't explain clearly. Sorry. I have made an extension as a VSIX package to give to other developers in the company. The customized items need to appear in the source control explorer contextual menu after they install the extension. the extension should do it for them. I don't want the devs having to manually add the item like above. I want to programmatically have the extension edit the menus. Again, sorry for any confusion.
    • Edited by AndrejsM Friday, July 27, 2012 6:50 PM
    Friday, July 27, 2012 6:50 PM
  • Sorry, I meant to reply to this but have been too busy. I am on my mobile now, so this will be somewhat brief. You want to use a search engine to lookup both EnableVSIPLogging and VSCTPowerToy, with those two together you can solve your problem. A more detailed explanation would have to wait until I have more free time (next week?)

    Ryan

    • Proposed as answer by Ego Jiang Tuesday, July 31, 2012 6:58 AM
    • Marked as answer by Ego Jiang Friday, August 3, 2012 8:06 AM
    Saturday, July 28, 2012 12:36 AM
  • Thank you Ryan, I will look into it and see what I can do.

    Andrejs

    Monday, July 30, 2012 1:23 PM