Integrate StyleCop in NAnt buildscript

Posted by stmax on Stack Overflow See other posts from Stack Overflow or by stmax
Published on 2010-03-22T10:33:00Z Indexed on 2010/03/29 19:13 UTC
Read the original article Hit count: 810

Is there a way to integrate StyleCop in a NAnt script such that the build fails if there are too many style violations?

There doesn't seem to be a NAnt task for StyleCop, but we've found StyleCopCmd. However this only seems to generate an XML file as output that we'd have to parse. Is there some easier solution?

© Stack Overflow or respective owner

Related posts about nant

Related posts about coding-style