-
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.
Simplify target to enable config binding src generator and rename sen…
…tinel property
- Loading branch information
Showing
4 changed files
with
24 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
17 changes: 17 additions & 0 deletions
17
...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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<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"> | ||
|
||
<ItemGroup> | ||
<Analyzer Remove="@(_Microsoft_Extensions_Configuration_BinderAnalyzer)" /> | ||
</ItemGroup> | ||
</Target> | ||
</Project> |