We are trying to configure Jenkins with the latest version of StyleCop.
Our existing Jenkins installation calls StyleCop through StyleCopCmd via nant, but StyleCopCmd seems to be increasingly deprecated and not supported; and Eid rather carved. Thus, the most appropriate solution is to call StyleCop from msbuild.
Our solution consists of several projects, but the Jenkins Violations plugin expects a single stylecop.violations.xml file, so the widely documented decision to import StyleCop.targets and call it from each csproj file seems like it doesn't work (because it will create multiple files with violations that the Jenkins plugin cannot handle).
SO:
- Is there a way to merge multiple files with StyleCop violations so that they are processed by the Jenkins Violations plugin, OR
- Is there a way, in Msbuild, to look into several β.csprojβ files by extracting β.csβ files and launching them through StyleCop in one-er. As an alternative:
- Given that we use Jenkins and several project files, is there any other way to report violations for all projects in the solution?
Any help gratefully received.
source share