This project is read-only.

MSBuild: Running StyleCop before build

Feb 4, 2013 at 11:57 PM
Edited Feb 4, 2013 at 11:58 PM
When I include StyleCop.targets in .csproj file VisualStudio first builds the project and only after that runs StyleCop. I would like to execute StyleCop analysis first and do not waste time on build if there are any violations.

What would be the right tag in .csproj for this?