void buildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     if (BuildStopped != null)
     {
         BuildStopped();
     }
 }
Exemple #2
0
 public void FireOnBuildDone(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     if (OnBuildDone != null)
     {
         OnBuildDone(scope, action);
     }
 }
Exemple #3
0
 public void FireOnBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     if (OnBuildBegin != null)
     {
         OnBuildBegin(scope, action);
     }
 }
Exemple #4
0
 static void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     AsmVerControl.CheckAndChangeAsmVer();
     if (Environment.OSVersion.Version.Major >= 6 && Environment.OSVersion.Version.Minor >= 1)
     {
         Common.Win7Taskbar.OnBuildBegin(Scope, Action);
     }
 }
Exemple #5
0
 void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     if (Config.Instance.BuildOptions.MatchFlags(BuildOptions.BuildTimestamp))
     {
         var output = GetOutputPane(VSConstants.OutputWindowPaneGuid.BuildOutputPane_guid, "Build");
         output?.OutputString(DateTime.Now.ToLongTimeString() + " Build started." + Environment.NewLine);
     }
 }
 private void OnDteBuildDone(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     if (action == EnvDTE.vsBuildAction.vsBuildActionBuild ||
         action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
     {
         this.BuildFinished(this, EventArgs.Empty);
     }
 }
 private void OnDteBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     if (action == EnvDTE.vsBuildAction.vsBuildActionBuild ||
         action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
     {
         this.BuildStarted(this, EventArgs.Empty);
     }
 }
        void buildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
        {
            ClearHostProcId();

            var handler = BuildStopped;

            if (handler != null)
            {
                handler();
            }
        }
Exemple #9
0
 void BuildEvents_OnBuildEnd(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     if (Config.Instance.BuildOptions.MatchFlags(BuildOptions.BuildTimestamp))
     {
         var output = GetOutputPane(VSConstants.OutputWindowPaneGuid.BuildOutputPane_guid, "Build");
         if (output != null)
         {
             output.OutputString(DateTime.Now.ToLongTimeString() + " " + R.T_BuildFinished + Environment.NewLine);
         }
     }
 }
        private void buildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
        {
            if (Action == EnvDTE.vsBuildAction.vsBuildActionBuild || Action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
            {
                Factory.GetBackgroundScanner().StopIfRunning(true);
                Factory.GetTaskProvider().Clear();
                Factory.GetTaskProvider().SetAsActiveProvider();
                SetHostObject();

                if (BuildStarted != null)
                {
                    BuildStarted();
                }
            }
        }
        private void buildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
        {
            if (Action == EnvDTE.vsBuildAction.vsBuildActionBuild || Action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
            {
                Factory.GetBackgroundScanner().StopIfRunning(true);
                Factory.GetTaskProvider().Clear();
                SetHostProcId();

                var handler = BuildStarted;
                if (handler != null)
                {
                    handler();
                }
            }
        }
Exemple #12
0
 private void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     try
     {
         Building = false;
         if (_buildProjects.Count > 0)
         {
             BuildContext(true);
             BuildNextProject();
         }
     }
     catch (Exception ex)
     {
         UnexpectedExceptionWarning(ex);
     }
 }
        private void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
        {
            try
            {
                if (action == EnvDTE.vsBuildAction.vsBuildActionBuild ||
                    action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
                {
                    //
                    // Ensure this runs once for parallel builds.
                    //
                    if (Building)
                    {
                        return;
                    }
                    Building = true;
                }

                List <IVsProject> projects = new List <IVsProject>();
                if (scope.Equals(EnvDTE.vsBuildScope.vsBuildScopeSolution))
                {
                    projects = DTEUtil.GetProjects();
                }
                else
                {
                    IVsProject selected = DTEUtil.GetSelectedProject();
                    if (selected != null)
                    {
                        projects.Add(selected);
                        DTEUtil.GetSubProjects(selected, ref projects);
                    }
                }

                foreach (IVsProject project in projects)
                {
                    IceBuilderProjectType type = DTEUtil.IsIceBuilderEnabled(project);
                    if (type != IceBuilderProjectType.None)
                    {
                        ProjectUtil.SetupGenerated(project, type);
                    }
                }
            }
            catch (Exception ex)
            {
                Package.UnexpectedExceptionWarning(ex);
                throw;
            }
        }
        private void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
        {
            ThreadHelper.ThrowIfNotOnUIThread();
            try
            {
                if (action == EnvDTE.vsBuildAction.vsBuildActionBuild ||
                    action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
                {
                    //
                    // Ensure this runs once for parallel builds.
                    //
                    if (Building)
                    {
                        return;
                    }
                    Building = true;

                    List <IVsProject> projects = new List <IVsProject>();
                    if (scope.Equals(EnvDTE.vsBuildScope.vsBuildScopeSolution))
                    {
                        projects = DTEUtil.GetProjects();
                    }
                    else
                    {
                        IVsProject selected = DTEUtil.GetSelectedProject();
                        if (selected != null)
                        {
                            projects.Add(selected);
                            DTEUtil.GetSubProjects(selected, ref projects);
                        }
                    }

                    foreach (IVsProject project in projects)
                    {
                        if (project.IsMSBuildIceBuilderInstalled())
                        {
                            ProjectUtil.SetupGenerated(project);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                UnexpectedExceptionWarning(ex);
            }
        }
        private void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
        {
            try
            {
                if (action == EnvDTE.vsBuildAction.vsBuildActionBuild ||
                    action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll)
                {
                    //
                    // Ensure this runs once for parallel builds.
                    //
                    if (Building)
                    {
                        return;
                    }
                    Building = true;
                }

                List <EnvDTE.Project> projects = new List <EnvDTE.Project>();
                if (scope.Equals(EnvDTE.vsBuildScope.vsBuildScopeSolution))
                {
                    projects = DTEUtil.GetProjects(DTE2.Solution);
                }
                else
                {
                    EnvDTE.Project selected = DTEUtil.GetSelectedProject();
                    if (selected != null)
                    {
                        DTEUtil.GetProjects(selected, ref projects);
                    }
                }

                foreach (EnvDTE.Project project in projects)
                {
                    if (DTEUtil.IsIceBuilderEnabled(project))
                    {
                        FileTracker.Reap(project);
                        ProjectUtil.SetupGenerated(project);
                    }
                }
            }
            catch (Exception ex)
            {
                Package.UnexpectedExceptionWarning(ex);
                throw;
            }
        }
 private void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     try
     {
         Building = false;
         if (_buildProjects.Count > 0)
         {
             BuildContext(true);
             BuildNextProject();
         }
     }
     catch (Exception ex)
     {
         BuildContext(false);
         UnexpectedExceptionWarning(ex);
     }
 }
        private void BuildEvents_OnBuildBegin(
            EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction Action)
        {
            if (Action == EnvDTE.vsBuildAction.vsBuildActionClean)
            {
                // Clear the project.json restore cache on clean to ensure that the next build restores again
                SolutionRestoreWorker.CleanCache();

                return;
            }

            if (!ShouldRestoreOnBuild)
            {
                return;
            }

            var forceRestore = Action == EnvDTE.vsBuildAction.vsBuildActionRebuildAll;

            // Execute
            SolutionRestoreWorker.Restore(SolutionRestoreRequest.OnBuild(forceRestore));
        }
Exemple #18
0
 private void Ev_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     timer          = new Timer(500);
     timer.Elapsed += Timer_Elapsed;
     timer.Start();
 }
 private void OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     ThreadHelper.ThrowIfNotOnUIThread();
     _buildEvents.OnBuildDone -= OnBuildDone;
     _tcsBuildProject.SetResult(null);
 }
Exemple #20
0
 void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     BuildDone(RawSolution.SolutionBuild.LastBuildInfo == 0);
 }
 private void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     DisableCommand(buildSlnMenuItem);
     DisableCommand(rebuildSlnMenuItem);
     DisableCommand(cleanSlnMenuItem);
 }
 private void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     EnableCommand(buildSlnMenuItem);
     EnableCommand(rebuildSlnMenuItem);
     EnableCommand(cleanSlnMenuItem);
 }
Exemple #23
0
 private void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     m_buildCompletedEvent.Set();
 }
 void _buildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     _scheduler.Start();
 }
 void _buildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     _scheduler.Stop();
 }
Exemple #26
0
        void BuildEvent_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
        {
            if (File.Exists(Path.Combine(Path.GetTempPath(), "TidyCurrentfilelog.txt")))
            {
                try
                {
                    File.Delete(Path.Combine(Path.GetTempPath(), "TidyCurrentfilelog.txt"));
                }
                catch
                {
                }
            }

            if (File.Exists(Path.Combine(Path.GetTempPath(), "TidyCurrentActionslog.txt")))
            {
                try
                {
                    File.Delete(Path.Combine(Path.GetTempPath(), "TidyCurrentActionslog.txt"));
                }
                catch
                {
                }
            }

            using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
                tidyLogWriter.WriteLine("Build process has finished...");


            var commandLineArgs = Environment.GetCommandLineArgs().ToList();
            var isReportMode    = false;

            if (commandLineArgs != null && commandLineArgs.Any())
            {
                foreach (var argum in commandLineArgs)
                {
                    if (argum.Equals("/tidyreportswitch", StringComparison.OrdinalIgnoreCase))
                    {
                        isReportMode = true;
                        break;
                    }
                }
            }

            using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
            {
                tidyLogWriter.WriteLine("Command line arguments ========================");

                if (commandLineArgs != null && commandLineArgs.Any())
                {
                    foreach (var argum in commandLineArgs)
                    {
                        tidyLogWriter.WriteLine(argum);
                    }
                }
                else
                {
                    tidyLogWriter.WriteLine("No arguments!!!");
                }

                if (isReportMode)
                {
                    tidyLogWriter.WriteLine("Report mode is on");
                }
                else
                {
                    tidyLogWriter.WriteLine("Report mode is off");
                }
            }

            if (isReportMode)
            {
                using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
                    tidyLogWriter.WriteLine("ActionReadOnlyCodeCleanup");


                var cleanUpRunner = new ActionReadOnlyCodeCleanup();

                using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
                    tidyLogWriter.WriteLine("RunReadOnlyCleanUp");


                cleanUpRunner.RunReadOnlyCleanUp();

                using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
                    tidyLogWriter.WriteLine("GenerateMessages");


                CodeCleanerHost.GenerateMessages();

                using (var tidyLogWriter = new StreamWriter(TidyProcesLogsPath, true))
                    tidyLogWriter.WriteLine("Tidy Report process has done.");
            }
        }
Exemple #27
0
 private void BuildEvents_OnBuildDone(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     _clippy.StartAnimation(ClippyAnimations.Congratulate, true);
 }
Exemple #28
0
 void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     BuildStart();
 }
 /// <summary>
 /// Clear the prior results because a build invalidates our knowledge
 /// </summary>
 private void PlugIn1_BuildDone(EnvDTE.vsBuildScope scope, EnvDTE.vsBuildAction action)
 {
     ResetTestResults();
 }
Exemple #30
0
 private void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
 {
     _clippy.StartAnimation(ClippyAnimations.Processing, true); // GetTechy
 }