This project is read-only.

StyleCop activity - include custom stylecop rules assemblies

Jul 31, 2012 at 8:59 AM

I want include in the StyleCop validation a custom assembly, which checks for company internal rules.

This assembly is located under C:\Program Files (x86)\StyleCop 4.7\MyRule.dll.

The Settings.StyleCop file specified the the usage of the custom rules.

 

Inside VisualStudio the custom rules are included in the validation, but in the build they are excluded.

I set StyleCop.AdditionalAddInPaths property with: C:\Program Files (x86)\StyleCop 4.7\MyRule.dll but it is ignored in this way too.

Any idea how i can include the custom rules?

Dec 10, 2013 at 4:43 PM
Hi,

I just found out that you need to use the path to the directory and not to the dll

use AdditionalAddInPaths="C:\Program Files (x86)\StyleCop 4.7"

it works with a network share for me
Marked as answer by mikeFourie on 2/9/2014 at 11:32 AM