-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
9 deletions.
There are no files selected for viewing
11 changes: 2 additions & 9 deletions
11
...ions.Configuration.Binder/src/buildTransitive/EnableConfigurationBindingGenerator.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |