Example #1
0
        bool IVsProjectCfgDebugTargetSelection.HasDebugTargets(IVsDebugTargetSelectionService pDebugTargetSelectionService, out Array pbstrSupportedTargetCommandIDs)
        {
            pbstrSupportedTargetCommandIDs = new string[] {
                String.Join(":", VSConstants.AppPackageDebugTargets.guidAppPackageDebugTargetCmdSet, VSConstants.AppPackageDebugTargets.cmdidAppPackage_RemoteMachine)
            };

            return(true);
        }
 public bool HasDebugTargets(
     IVsDebugTargetSelectionService pDebugTargetSelectionService, out Array pbstrSupportedTargetCommandIDs)
 {
     _debugTargetSelectionService   = pDebugTargetSelectionService;
     pbstrSupportedTargetCommandIDs = DebugTargets
                                      .Select(t => $"{t.Guid}:{t.Id}").ToArray();
     return(true);
 }
        public bool HasDebugTargets(IVsDebugTargetSelectionService pDebugTargetSelectionService, out Array pbstrSupportedTargetCommandIDs)
        {
            _debugService = pDebugTargetSelectionService;

            var targets = new string[DebugTargetCommandIds.Length];

            for (int i = 0; i < DebugTargetCommandIds.Length; ++i)
            {
                var commandId = DebugTargetCommandIds[i];
                targets[i] = string.Join(":", DebugTargetGuid, commandId);
            }

            pbstrSupportedTargetCommandIDs = targets;
            return(true);
        }
        bool IVsProjectCfgDebugTargetSelection.HasDebugTargets(IVsDebugTargetSelectionService pDebugTargetSelectionService, out Array pbstrSupportedTargetCommandIDs)
        {
            pbstrSupportedTargetCommandIDs = new string[] {
                String.Join(":", VSConstants.AppPackageDebugTargets.guidAppPackageDebugTargetCmdSet, VSConstants.AppPackageDebugTargets.cmdidAppPackage_LocalMachine),
                String.Join(":", VSConstants.AppPackageDebugTargets.guidAppPackageDebugTargetCmdSet, VSConstants.AppPackageDebugTargets.cmdidAppPackage_RemoteMachine)
            };

            return true;
        }