Reputation: 89
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
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