public void Start() { // Initialize backround worker _backgroundWorker = new BackgroundWorker() { WorkerReportsProgress = true, WorkerSupportsCancellation = true }; _backgroundWorker.DoWork += OnStart; _backgroundWorker.ProgressChanged += OnProgress; _backgroundWorker.RunWorkerCompleted += OnComplete; // Run task _backgroundWorker.RunWorkerAsync(); // Autoclear console, if required if (Settings.Default.NANT_CLEAR_OUTPUT) { VisualStudioUtils.GetConsole(ApplicationObject, AppConstants.NAntRunner).Clear(); } // Trace start build WriteConsole(string.Format("{0}[{2}]: Target '{1}' started...{0}{0}", Environment.NewLine, TargetNode["name"], AppConstants.NAntRunner)); }
public void WriteConsole(string message) { VisualStudioUtils.GetConsole(ApplicationObject, AppConstants.NAntRunner).OutputString(message); }