Permalink
Browse files

Avoids StyleCop messages on generated files in the IDE.

  • Loading branch information...
AArnott committed Mar 28, 2013
1 parent e062284 commit c8257380deb3e2ca9abd47a35b37c33f0951044e
Showing with 8 additions and 0 deletions.
  1. +8 −0 EnlistmentInfo.props
View
@@ -12,4 +12,12 @@
<RequireRestoreConsent>false</RequireRestoreConsent>
<DownloadNuGetExe>true</DownloadNuGetExe>
</PropertyGroup>
+
+ <Target Name="ExcludeGeneratedFilesFromStyleCop" BeforeTargets="StyleCop">
+ <ItemGroup>
+ <Compile Condition=" $([System.String]::new('%(FileName)').StartsWith('TemporaryGeneratedFile')) ">
+ <ExcludeFromStyleCop>true</ExcludeFromStyleCop>
+ </Compile>
+ </ItemGroup>
+ </Target>
</Project>

0 comments on commit c825738

Please sign in to comment.