Excluded files not being excluded in the IDE

May 13, 2012 at 11:07 PM


I have configured some of my files to be excluded from StyleCop analysis by setting ExcludeFromStyleCop in the project file. However this setting appears to be ignored when running StyleCop from within the IDE. My expectation was that when running StyleCop on a particular file this setting would be ignored, but when running it on either the project or the solution then it would be obeyed.

Is this by design? If so, is there an alternative way to exclude these files from being analysed within the IDE?


May 13, 2012 at 11:33 PM

OK - it seems to work fine with File Lists, is the project setting ExcludeFromStyleCop no longer supported?


May 14, 2012 at 12:06 PM


This should work fine as you've described. Can you Copy to Work Item please and attach a sample sln and simple repro steps please.