async Task<BuildResult> CleanAsync (IBuildTarget entry, ProgressMonitor monitor, ITimeTracker tt, bool isRebuilding, OperationContext operationContext) { BuildResult res = null; try { tt.Trace ("Cleaning item"); res = await entry.Clean (monitor, IdeApp.Workspace.ActiveConfiguration, operationContext); } catch (Exception ex) { monitor.ReportError (GettextCatalog.GetString ("Clean failed."), ex); } finally { tt.Trace ("Done cleaning"); } if (isRebuilding) { if (EndClean != null) { OnEndClean (monitor, tt); } } else { CleanDone (monitor, entry, tt); } return res; }