Skip to content

Commit

Permalink
Further simplify target
Browse files Browse the repository at this point in the history
  • Loading branch information
layomia committed Apr 5, 2023
1 parent 95270a9 commit 1994914
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
<Project>
<Target Name="_Microsoft_Extensions_Configuration_BinderGatherAnalyzers">
<ItemGroup>
<_Microsoft_Extensions_Configuration_BinderAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'Microsoft.Extensions.Configuration.Binder'" />
</ItemGroup>
</Target>

<Target Name="_Microsoft_Extensions_Configuration_BinderRemoveAnalyzer"
Condition="'$(EnableConfigurationBindingGenerator)' != 'true'"
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
DependsOnTargets="_Microsoft_Extensions_Configuration_BinderGatherAnalyzers">
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets">

<ItemGroup>
<Analyzer Remove="@(_Microsoft_Extensions_Configuration_BinderAnalyzer)" />
<Analyzer Remove="@(Analyzer->WithMetadataValue('NuGetPackageId', 'Microsoft.Extensions.Configuration.Binder'))" />
</ItemGroup>
</Target>
</Project>

0 comments on commit 1994914

Please sign in to comment.