Integrating StyleCop Into Build Environments - Visual-Stylecop/Visual-StyleCop GitHub Wiki
It is possible to integrate the StyleCop toolset into a build environment, so that the tool will run whenever a build is performed and will export style and consistency violations as build warnings or build errors. There are various levels of build integration available, depending upon the types of tools used within your team's build environment.
Learn how to integrate StyleCop into an MSBuild-based build system using the standard StyleCop MSBuild task: Integrating StyleCop into MSBuild
Learn how to create a custom MSBuild wrapper for StyleCop to enable more advanced scenarios: Custom MSBuild Integration
Learn how to write a custom wrapper for StyleCop to integrate the tool into a custom build environment: Hosting StyleCop in a Custom Environment