You can quickly force StyleCop to ignore files in a project by manually modifying the project file, and inserting the following element under each file being compiled that you wish to have ignored:
Force StyleCop to Ignore a File
原文:http://www.cnblogs.com/zhangpengc/p/5014803.html