rvsonar on Tue, 24 Jun 2014 14:51:17
I want to get reference of Debug Target drop down from vs 2013 toolbar.
I tried following code, but it always returns null.
CommandID idtofind = new CommandID(VSConstants.AppPackageDebugTargets.guidAppPackageDebugTargetCmdSet, (int)VSConstants.DebugTargetHandler.cmdidDebugTypeCombo); var obj = mcs.FindCommand(idtofind); //mcs is OLEMenuCommandService obj.ToString(); //obj is always null
Ed Dore on Tue, 24 Jun 2014 17:01:55
What is the actual goal here? The command is implemented in the debugger package, and it may (or may not) utilize that menu command service. Actually, I think that package just implements IOleCommandTarget directly.
rvsonar on Wed, 25 Jun 2014 04:51:16
Hi Ed Dore,
Currently I am developing an extension for vs 2013, and want to add few debugger targets under "Start" drop down dynamically.
I would like to know your thoughts on this.
Am I on right track?
Ed Dore on Thu, 26 Jun 2014 20:22:00
The debugtarget controller is actually populated by the project types implementation of IVsProjectCfgDebugTargetSelection implementation. The MPF_Proj doesn't do this, but if you're using that codebase, you can just add it to your ProjectConfig class.
I don't believe we've got any examples of this, but the comments in the C:\Program Files (x86)\Microsoft Visual Studio 12.0\VSSDK\VisualStudioIntegration\Common\IDL\compsvcspkg110.idl above the interface definition are a good place to start.