Fábio
Fábio

Reputation: 89

How to run Stylecop only in check in?

I've to use Stylecop with VS2010 (using Team Developer) in my company, but it makes me waste a lot of time, and it's really anoying.

Does anybody knows how to run Stylecop only before checking in the code, instead of in every time I build the project?

Thanks in advance

Upvotes: 1

Views: 775

Answers (1)

Matthew Strawbridge
Matthew Strawbridge

Reputation: 20610

I agree with you – I don't think it's helpful to run Stylecop on every build.

By default, Stylecop doesn't run when you build; it will only do so if your Visual Studio project has been deliberately set up to make this happen. So you'll have to edit your project to take this step out (and take care not to check your modified project in to source control).

Upvotes: 1

Related Questions