I am working on stylecop and i need some more information about Style Cop.
What I have done is i have placed a Tools folder inside my project folder and set a varibale named StyleCopTools which holds the path of this folder.
this folder has a custom.targets file whic access the
Microsoft.StylecCop.Targets file present within Tools\v4.4 in the same directory.
Now whenever i Change any property say <StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
then it automatically propagates to cs.proj file and the project but if i change the same setting within cs.proj file it overrides settings of main stylecop targets file.
ANY WAY TO STOP THIS.
Secondly to break build every time for stylecop errors i needed to inject this line into every cs.proj file under <ItemGroup>
<Content Include ="obj\x86\Debug\StyleCopViolations.xml"/>
then only the break was building everytime.
How can i do this by handling main stylecop targets file.?
Please i need immediate help.