refactor: treat StyleCop violations as warnings in Release builds

fixes #262
`TreatWarningsAsErrors` is for the compiler.

Hmmmm... I think we should probably also relax that to false for Release builds too.