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:
parent
c07d39d746
commit
8c67a6ebc6
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<DisableImplicitComponentsAnalyzers>true</DisableImplicitComponentsAnalyzers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
Loading…
Reference in New Issue