简体   繁体   中英

How to improve StyleCop in check in?

I have VS2012 and local tfs2012 server. I need, when I check in code, some activity check code by StyleCop.

I need that not code that doesn't pass the rules in StyleCop doesn't get send to TFS. No check-in on build time.

You can integrate StyleCop with MSBuild so it will be run during every build of your project.

Have a look at the documentation on the StyleCop project page

You can customize your build template to use the StyleCop Activity included in the TFS Community Build Extensions . That's how I do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM