private void AttemptHardClean(DTE dte) { if (this.forceCleanCheckBox.IsChecked.GetValueOrDefault() && !string.IsNullOrWhiteSpace(dte?.Solution.FullName)) { FileUtils.AttemptHardClean(dte); } }
private void AttemptForceClean(DTE dte) { if (this.collectionExists) { if (this.configurationSettingsStore.PropertyExists(Common.Constants.CollectionPath, Common.Constants.ForceCleanProperty)) { var forceClean = Convert.ToBoolean(this.configurationSettingsStore.GetString(Common.Constants.CollectionPath, Common.Constants.ForceCleanProperty)); if (forceClean && !string.IsNullOrWhiteSpace(dte.Solution.FullName)) { FileUtils.AttemptHardClean(dte); } } } }