private void StyleCopCoreAddSettingsPages(object sender, AddSettingsPagesEventArgs e)
        {
            Param.Ignore(sender);
            Param.AssertNotNull(e, "e");

            Project project  = ProjectUtilities.GetActiveProject();
            string  fullName = ProjectUtilities.GetProjectFullName(project);

            if (string.IsNullOrEmpty(fullName))
            {
                return;
            }

            project.Save();

            var proj = new Microsoft.Build.Evaluation.Project(
                project.FullName, null, null, new Microsoft.Build.Evaluation.ProjectCollection());

            e.Add(new BuildIntegrationOptions(proj));
        }
        private void StyleCopCoreAddSettingsPages(object sender, AddSettingsPagesEventArgs e)
        {
            Param.Ignore(sender);
            Param.AssertNotNull(e, "e");

            Project project = ProjectUtilities.GetActiveProject();
            string fullName = ProjectUtilities.GetProjectFullName(project);
            if (string.IsNullOrEmpty(fullName))
            {
                return;
            }

            project.Save();
            Microsoft.Build.BuildEngine.Engine engine = new Microsoft.Build.BuildEngine.Engine();
            Microsoft.Build.BuildEngine.Project proj = engine.CreateNewProject();
            proj.Load(project.FullName);
            e.Add(new BuildIntegrationOptions(proj));
        }
        private void StyleCopCoreAddSettingsPages(object sender, AddSettingsPagesEventArgs e)
        {
            Param.Ignore(sender);
            Param.AssertNotNull(e, "e");

            Project project = ProjectUtilities.GetActiveProject();
            string fullName = ProjectUtilities.GetProjectFullName(project);
            if (string.IsNullOrEmpty(fullName))
            {
                return;
            }

            project.Save();

            var proj = new Microsoft.Build.Evaluation.Project(
                project.FullName, null, null, new Microsoft.Build.Evaluation.ProjectCollection());
            e.Add(new BuildIntegrationOptions(proj));
        }