You can use msbuidl and the msbuild extension package, in particular: MSBuild.ExtensionPack.StyleCop.dll
for path analysis (everything here is here), for example
and send files to the task
<MSBuild.ExtensionPack.CodeQuality.StyleCop
TaskAction="Scan"
ShowOutput="true"
ForceFullAnalysis="true"
CacheResults="false"
SourceFiles="@(SourceFiles)"
SettingsFile="$(SourceAnalysisSettingsFile)"
ContinueOnError="false">
<Output TaskParameter="Succeeded" PropertyName="AllPassed"/>
<Output TaskParameter="ViolationCount" PropertyName="Violations"/>
<Output TaskParameter="FailedFiles" ItemName="Failures"/>
</MSBuild.ExtensionPack.CodeQuality.StyleCop>
Hope you get started.
source
share