public int Exec(List <WorkspaceVisualNodeBase> selection, Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
        {
            if (pguidCmdGroup == CommandGroup.NuGetOnlineEnvironmentsClientProjectCommandSetGuid)
            {
                var nCmdIDInt = (int)nCmdID;

                switch (nCmdIDInt)
                {
                case PkgCmdIDList.CmdidRestorePackages:
                    if (IsSolutionOnlySelection(selection))
                    {
                        _restoreCommandHandler.RunSolutionRestore();
                        return(VSConstants.S_OK);
                    }
                    break;

                case PkgCmdIDList.CmdIdManageProjectUI:
                    if (IsSupportedProjectSelection(selection))
                    {
                        _packageManagerUICommandHandler.OpenPackageManagerUI(selection.Single());
                        return(VSConstants.S_OK);
                    }
                    break;

                default:
                    break;
                }
            }
            return((int)Constants.OLECMDERR_E_NOTSUPPORTED);
        }
        public int Exec(List <WorkspaceVisualNodeBase> selection, Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
        {
            if (pguidCmdGroup == CommandGroup.NuGetOnlineEnvironmentsClientProjectCommandSetGuid)
            {
                var nCmdIDInt = (int)nCmdID;

                if (IsSolutionOnlySelection(selection))
                {
                    switch (nCmdIDInt)
                    {
                    case PkgCmdIDList.CmdidRestorePackages:
                        _restoreCommandHandler.RunSolutionRestore();
                        return(VSConstants.S_OK);
                    }
                }
            }
            return((int)Microsoft.VisualStudio.OLE.Interop.Constants.OLECMDERR_E_NOTSUPPORTED);
        }