예제 #1
0
        protected override void Run()
        {
            var monitor = ProgressMonitorService.OutputProgressMonitor;

            monitor.Log.WriteLine(DateTimeOffset.Now);
            monitor.Log.WriteLine("プロジェクトのクリーンを開始します");

            ProjectCleanService
            .Clean(IdeApp.Workbench.ActiveDocument.Project, monitor);

            monitor.ReportSuccess("プロジェクトをクリーンしました!");
        }
        protected override void Run()
        {
            var projects = IdeApp.ProjectOperations.CurrentSelectedSolution.GetAllProjects();

            var monitor = ProgressMonitorService.OutputProgressMonitor;

            monitor.Log.WriteLine(DateTimeOffset.Now);
            monitor.Log.WriteLine("ソリューションのクリーンを開始します");

            foreach (var project in projects)
            {
                ProjectCleanService.Clean(project, monitor);
            }

            monitor.Log.WriteLine("ソリューションのクリーンが終了しました!");
            monitor.Log.WriteLine(monitor.Log.NewLine);
        }
예제 #3
0
        private void OnStartBuild(object sender, BuildEventArgs args)
        {
            if (PropertyService.Get <bool>(ForcedCleanConst.AutoFlagKey))
            {
                var projects = IdeApp.ProjectOperations.CurrentSelectedSolution.GetAllProjects();

                var monitor = ProgressMonitorService.OutputProgressMonitor;

                monitor.Log.WriteLine(DateTimeOffset.Now);
                monitor.Log.WriteLine("ソリューションのクリーンを開始します");

                foreach (var project in projects)
                {
                    ProjectCleanService.Clean(project, monitor);
                }

                monitor.Log.WriteLine("ソリューションのクリーンが終了しました!");
                monitor.Log.WriteLine(monitor.Log.NewLine);
            }
        }