Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VS2013 / Team Explorer vsix - How to get the currently selected build definition?

$
0
0

Greetings,

My goal with a simple extension is to right-click any build definition and if my "Show Build Def Stats" menu item is selected, pop a message box with some summary details I plan to pull from the IBuildDefinition interface.

I'm missing something fundamental I'm sure, but I cannot figure out how in the menu handler the actual build definition that I clicked on.

The menu command is added where I want it successfully:

Team Explorer - Get Build Definition Stats context menu command

Symbol info used to get this there:

    <!-- This is the Build Definition Context Menu -->
    <GuidSymbol name="guidTeamExplorerBuildDefContextMenu" value="{34586048-8400-472E-BBBF-3AE30AF8046E}" >
      <IDSymbol name="menuBuildDefinitionContext" value="0x109"/>
    </GuidSymbol>

I am stumped as to how to get the fact that I clicked the "ISRepository" build definition in either the Initialize() or MenuItemCallBack() methods, I haven't come across the right service or container object that I recognize.

Much obliged!

--Jordan


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>