Пример #1
0
        void BeforeQueryStatus(object sender, EventArgs e)
        {
            var button = (OleMenuCommand)sender;

            var solutionHasVsixProjects = ProjectHelpers.GetAllProjectsInSolution().Any(p => p.IsExtensibilityProject());

            button.Enabled = button.Visible = solutionHasVsixProjects;
        }
        void BeforeQueryStatus(object sender, EventArgs e)
        {
            var button = (OleMenuCommand)sender;

            string solutionRoot  = Path.GetDirectoryName(DTE.Solution.FullName);
            bool   appVeyorExist = File.Exists(Path.Combine(solutionRoot, "appveyor.yml"));

            var solutionHasVsixProjects = ProjectHelpers.GetAllProjectsInSolution().Any(p => p.IsExtensibilityProject());

            button.Enabled = !appVeyorExist;
            button.Visible = solutionHasVsixProjects;
        }