Add Components analyzer flag to ensure no analyzer duplicates.

- Chose the name `DisableImplicitComponentAnalyzers` (DICA) to not conflict with `DisableImplicitAspNetCoreAnalyzers` (DIAA). The goal with this flag is that in the SDK we can read its value and do one of the following:

| DICA    | DIAA    | Action                                                                                                     |
|---------|---------|------------------------------------------------------------------------------------------------------------|
| `true`  | `true`  | No component analyzers added from SDK, remove the component analyzers that were added from the package ref |
| `true`  | `false` | No component analyzers added from SDK                                                                      |
| `false` | `true`  | No component analyzers added from SDK                                                                      |
| `false` | `false` | Component analyzers added in SDK                                                                           |

#8825
This commit is contained in:
N. Taylor Mullen 2019-07-08 14:31:02 -07:00
parent c07d39d746
commit 8c67a6ebc6
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@
<ItemGroup>
<None Include="$(TargetPath)" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
<None Include="build/netstandard2.0/*" Pack="true" PackagePath="build/netstandard2.0" />
</ItemGroup>
<ItemGroup>

View File

@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
</PropertyGroup>
</Project>