public void ParseStyleCopSettings() { if (_didStyleCopSettingsFile) { return; } try { var pathElement = ProjectRoot.FindElementThatContains("None", "Include", "Settings.StyleCop"); if (pathElement == null) { return; } _styleCopSettingsFile = _settingsFileFactory.Create(Path.Combine(ProjectPath, pathElement.Value)); } catch (Exception) { _styleCopSettingsFile = null; } _didStyleCopSettingsFile = true; }
public void ParseStyleCopSettings() { if (_didStyleCopSettingsFile) return; try { var pathElement = ProjectRoot.FindElementThatContains("None", "Include", "Settings.StyleCop"); if (pathElement == null) return; _styleCopSettingsFile = _settingsFileFactory.Create(Path.Combine(ProjectPath, pathElement.Value)); } catch (Exception) { _styleCopSettingsFile = null; } _didStyleCopSettingsFile = true; }