|
|
|
@ -59,16 +59,22 @@ namespace MattEverson.SourceAnalysis {
@@ -59,16 +59,22 @@ namespace MattEverson.SourceAnalysis {
|
|
|
|
|
settingsFile = CopyFromMaster(); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
MessageBox.Show("No settings file found to modify."); |
|
|
|
|
MessageService.ShowWarning("No settings file found to modify."); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var executable = "\"" + StyleCopWrapper.FindStyleCopPath() + "\\SourceAnalysisSettingsEditor.exe\""; |
|
|
|
|
var executable = Path.Combine(StyleCopWrapper.FindStyleCopPath(), "StyleCopSettingsEditor.exe"); |
|
|
|
|
var parameters = "\"" + settingsFile + "\""; |
|
|
|
|
using(Process p = Process.Start(executable, parameters)) { |
|
|
|
|
// No need to wait for the settings dialog to close - we can leave it open.
|
|
|
|
|
if (!File.Exists(executable)) { |
|
|
|
|
LoggingService.Debug("StyleCopSettingsEditor.exe: " + executable); |
|
|
|
|
MessageService.ShowWarning("Unable to find the StyleCop Settings editor. Please specify the StyleCop location in Tools Options."); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
using(Process p = Process.Start("\"" + executable + "\"", parameters)) { |
|
|
|
|
// No need to wait for the settings dialog to close - we can leave it open.
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private bool ConfirmReplaceMissingFile() { |
|
|
|
|