private string[] GetRuleAssemblyList(bool replacePath) { List <string> list = new List <string>(); string fxCopPath = FxCopWrapper.FindFxCopPath(); foreach (string dir in ruleAssemblies.Split(';')) { if (string.Equals(dir, "$(FxCopDir)\\rules", StringComparison.OrdinalIgnoreCase)) { continue; } if (string.Equals(dir, "$(FxCopDir)/rules", StringComparison.OrdinalIgnoreCase)) { continue; } if (replacePath && !string.IsNullOrEmpty(fxCopPath)) { list.Add(Regex.Replace(dir, @"\$\(FxCopDir\)", fxCopPath, RegexOptions.CultureInvariant | RegexOptions.IgnoreCase)); } else { list.Add(dir); } } return(list.ToArray()); }
void ShowStatus() { string path = FxCopWrapper.FindFxCopPath(); if (path == null) { Get <Label>("status").Text = StringParser.Parse("${res:ICSharpCode.CodeAnalysis.IdeOptions.FxCopNotFound}"); } else { Get <Label>("status").Text = StringParser.Parse("${res:ICSharpCode.CodeAnalysis.IdeOptions.FxCopFoundInPath}") + Environment.NewLine + path; } }