You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
6 months ago
|
<Project>
|
||
|
<Target Name="_System_Text_JsonGatherAnalyzers">
|
||
|
|
||
|
<ItemGroup>
|
||
|
<_System_Text_JsonAnalyzer Include="@(Analyzer)" Condition="'%(Analyzer.NuGetPackageId)' == 'System.Text.Json'" />
|
||
|
</ItemGroup>
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="_System_Text_JsonAnalyzerMultiTargeting"
|
||
|
Condition="'$(SupportsRoslynComponentVersioning)' != 'true'"
|
||
|
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
|
||
|
DependsOnTargets="_System_Text_JsonGatherAnalyzers">
|
||
|
|
||
|
<ItemGroup>
|
||
|
<!-- Remove our analyzers targeting roslyn4.x -->
|
||
|
<Analyzer Remove="@(_System_Text_JsonAnalyzer)"
|
||
|
Condition="$([System.String]::Copy('%(_System_Text_JsonAnalyzer.Identity)').IndexOf('roslyn4')) >= 0"/>
|
||
|
</ItemGroup>
|
||
|
</Target>
|
||
|
|
||
|
<Target Name="_System_Text_JsonRemoveAnalyzers"
|
||
|
Condition="'$(DisableSystemTextJsonSourceGenerator)' == 'true'"
|
||
|
AfterTargets="ResolvePackageDependenciesForBuild;ResolveNuGetPackageAssets"
|
||
|
DependsOnTargets="_System_Text_JsonGatherAnalyzers">
|
||
|
|
||
|
<!-- Remove all our analyzers -->
|
||
|
<ItemGroup>
|
||
|
<Analyzer Remove="@(_System_Text_JsonAnalyzer)" />
|
||
|
</ItemGroup>
|
||
|
</Target>
|
||
|
</Project>
|