<import project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"/>
<import project="$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets"/>
StyleCop also complains the temporary files that Visual Studio generates do not have headers. There are a few ways to have it ignore these, but I found adding this to the project file works well in the Express version of Visual Studio.
<import project="$(ProgramFiles)\MSBuild\StyleCop\v4.7\StyleCop.targets"/>
<itemgroup>
<excludefromstylecop include="$(IntermediateOutputPath)\**\*.cs">
</excludefromstylecop>
</itemgroup>
<excludefromstylecop include="$(IntermediateOutputPath)\**\*.cs">
</excludefromstylecop>
</itemgroup>
No comments:
Post a Comment