diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-27 20:53:24 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2013-03-27 20:53:24 -0700 |
commit | c8257380deb3e2ca9abd47a35b37c33f0951044e (patch) | |
tree | f6d77e243c21cc1764be800f253feefd39efe03e | |
parent | e062284c89158b8edcee3261b27ee82fd9897365 (diff) | |
download | DotNetOpenAuth-c8257380deb3e2ca9abd47a35b37c33f0951044e.zip DotNetOpenAuth-c8257380deb3e2ca9abd47a35b37c33f0951044e.tar.gz DotNetOpenAuth-c8257380deb3e2ca9abd47a35b37c33f0951044e.tar.bz2 |
Avoids StyleCop messages on generated files in the IDE.
-rw-r--r-- | EnlistmentInfo.props | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/EnlistmentInfo.props b/EnlistmentInfo.props index 5afd8f5..2e20285 100644 --- a/EnlistmentInfo.props +++ b/EnlistmentInfo.props @@ -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>
\ No newline at end of file |