private CopyAsPathCommand(CopyAsPathCommandPackage package, UIHierarchy solutionExplorer)
        {
            Requires.NotNull(package, nameof(package));
            Requires.NotNull(solutionExplorer, nameof(solutionExplorer));
            this.package = package;
            this.solutionExplorer = solutionExplorer;

            OleMenuCommandService commandService = package.QueryService<IMenuCommandService>() as OleMenuCommandService;
            if (commandService != null)
            {
                var menuCommandID = new CommandID(CommandSet, CommandId);
                var menuItem = new MenuCommand(this.MenuItemCallback, menuCommandID);
                commandService.AddCommand(menuItem);
            }
        }
 public static void Initialize(CopyAsPathCommandPackage package, UIHierarchy solutionExplorer)
 {
     Requires.NotNull(package, nameof(package));
     Requires.NotNull(solutionExplorer, nameof(solutionExplorer));
     Instance = new CopyAsPathCommand(package, solutionExplorer);
 }