Skip to content

Commit

Permalink
Merge pull request #1581 from oatkins/stylecopsettings-item-name
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Oct 16, 2015
2 parents adab719 + 5e4d166 commit 019ade5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
<None Include="..\StyleCop.Analyzers.ruleset">
<Link>StyleCop.Analyzers.ruleset</Link>
</None>
<None Include="build\StyleCop.Analyzers.targets" />
<None Include="packages.config" />
<NuGetManifest Include="StyleCop.Analyzers.nuspec">
<SubType>Designer</SubType>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
<file src="tools\install.ps1" target="tools\" />
<file src="tools\uninstall.ps1" target="tools\" />

<!-- MSBuild imports -->
<file src="build\StyleCop.Analyzers.targets" target="build\" />

<!-- Source code -->
<file src="**\*.cs" exclude="obj\**\*.cs" target="src"/>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Target Name="InjectStyleCopSettings"
BeforeTargets="CoreCompile">
<ItemGroup>
<StyleCopSettings Include="@(None)"
Condition="'%(Filename)%(Extension)' == 'stylecop.json'"/>
<AdditionalFiles Include="%(StyleCopSettings.Identity)" />
</ItemGroup>
</Target>

</Project>

0 comments on commit 019ade5

Please sign in to comment.