From 8c67a6ebc61b5eec5b36da0d12d0af915d599ef4 Mon Sep 17 00:00:00 2001 From: "N. Taylor Mullen" Date: Mon, 8 Jul 2019 14:31:02 -0700 Subject: [PATCH] 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 --- .../src/Microsoft.AspNetCore.Components.Analyzers.csproj | 1 + .../Microsoft.AspNetCore.Components.Analyzers.props | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 src/Components/Analyzers/src/build/netstandard2.0/Microsoft.AspNetCore.Components.Analyzers.props diff --git a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj index abd1e5e519..c84bc990f2 100644 --- a/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj +++ b/src/Components/Analyzers/src/Microsoft.AspNetCore.Components.Analyzers.csproj @@ -17,6 +17,7 @@ + diff --git a/src/Components/Analyzers/src/build/netstandard2.0/Microsoft.AspNetCore.Components.Analyzers.props b/src/Components/Analyzers/src/build/netstandard2.0/Microsoft.AspNetCore.Components.Analyzers.props new file mode 100644 index 0000000000..0ba7b4da05 --- /dev/null +++ b/src/Components/Analyzers/src/build/netstandard2.0/Microsoft.AspNetCore.Components.Analyzers.props @@ -0,0 +1,5 @@ + + + true + +