Exemple #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);
        }
Exemple #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);
            }
        }