I need to run StyleCop rules check when gatecheckin into tfs2010.
But I dont know how to configure this.
Please help.
I need to run StyleCop rules check when gatecheckin into tfs2010. But I dont
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way is to change from using SyleCop to using Code Analysis which is built into VS2010.
If you must use StyleCop you need to get it to run as an activity on the XAML Workflow used during the build. The easiest way is to create an activity that runs StyleCop with the options as parameters. You can then surface those options to the Process settings on the build definition.
I would check out http://msbuildextensionpack.codeplex.com/