Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }