Esempio n. 1
0
        private static void Execute(object sender, EventArgs e)
        {
            var fixer = new ProjectFixerXml(GlobalServices.get_current_project_stub());

            if (fixer.IsExtenderProject && fixer.NeedsFixing)
            {
                fixer.FixupProject();
            }

            var cmdsetid = Constants.guidStandardCommandSet97;

#if VS2008
            object pvaIn = null;
            GlobalServices.Shell.PostExecCommand(ref cmdsetid, (uint)VSConstants.VSStd97CmdID.ReloadProject, 0,
                                                 ref pvaIn);
#elif VS2010
            GlobalServices.Shell.PostExecCommand(ref cmdsetid, (uint)VSConstants.VSStd97CmdID.ReloadProject, 0,
                                                 null);
#endif
        }
Esempio n. 2
0
        void QueryStatus(object sender, EventArgs e)
        {
            var fixer = new ProjectFixerXml(GlobalServices.get_current_project_stub());

            Visible = fixer.IsExtenderProject && fixer.NeedsFixing;
        }