File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 39
39
</PackageReference >
40
40
</ItemGroup >
41
41
42
- <!-- Dependencies for netstandard only -->
43
- <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netstandard2.1'" >
44
- <PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
42
+ <!-- Dependencies for prior to net5.0-->
43
+ <ItemGroup Condition =" !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net5.0'))" >
45
44
<PackageReference Include =" System.Threading.Channels" Version =" 8.0.0" />
46
45
<PackageReference Include =" System.Diagnostics.DiagnosticSource" Version =" 8.0.1" />
47
46
<PackageReference Include =" Nullable" Version =" 1.3.1" >
48
47
<PrivateAssets >all</PrivateAssets >
49
48
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
50
49
</PackageReference >
51
- <PackageReference Include =" System.IO.Pipelines" Version =" 8.0.0" />
52
50
</ItemGroup >
53
51
54
52
<!-- Dependencies for netstandard2.0 only -->
61
59
<PackageReference Include =" IndexRange" Version =" 1.0.3" />
62
60
</ItemGroup >
63
61
64
- <!-- Dependencies for net6.0 and net8.0 only -->
65
- <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0' OR '$(TargetFramework)' == 'net8.0'" >
62
+ <!-- Dependencies for prior to net8.0-->
63
+ <ItemGroup Condition =" !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))" >
64
+ <PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
65
+ </ItemGroup >
66
+
67
+ <!-- Dependencies for prior to net9.0-->
68
+ <ItemGroup Condition =" !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net9.0'))" >
66
69
<PackageReference Include =" System.IO.Pipelines" Version =" 8.0.0" />
67
70
</ItemGroup >
68
71
Original file line number Diff line number Diff line change 24
24
<NoWarn >$(NoWarn);CS8774</NoWarn >
25
25
</PropertyGroup >
26
26
27
- <!-- Dependencies for netstandard only -->
28
- <ItemGroup Condition =" '$(TargetFramework)' == 'netstandard2.0' OR ' $(TargetFramework)' == 'netstandard2.1' " >
27
+ <!-- Dependencies for prior to net5.0 -->
28
+ <ItemGroup Condition =" !$([MSBuild]::IsTargetFrameworkCompatible(' $(TargetFramework)', 'net5.0')) " >
29
29
<PackageReference Include =" System.ComponentModel.Annotations" Version =" 5.0.0" />
30
- <PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
31
30
</ItemGroup >
32
31
33
32
<!-- Dependencies for net6.0 only -->
34
- <ItemGroup Condition =" '$(TargetFramework)' == 'net6 .0'" >
33
+ <ItemGroup Condition =" !$([MSBuild]::IsTargetFrameworkCompatible( '$(TargetFramework)', 'net8 .0')) " >
35
34
<PackageReference Include =" System.Text.Json" Version =" 8.0.5" />
36
35
</ItemGroup >
37
36
You can’t perform that action at this time.
0 commit comments