Skip to content

Commit 1ab4001

Browse files
committed
Redo conditional packages
1 parent ebf7dcc commit 1ab4001

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/ReactiveUI/ReactiveUI.csproj

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,24 @@
5454
</ItemGroup>
5555
<ItemGroup Condition=" $(TargetFramework.StartsWith('net4')) or '$(TargetFramework)' == 'net6.0' or '$(TargetFramework)' == 'net7.0' or '$(TargetFramework)' == 'net8.0' or $(TargetFramework.EndsWith('-windows10.0.17763.0')) or $(TargetFramework.EndsWith('-windows10.0.19041.0')) ">
5656
<Compile Include="Platforms\net\**\*.cs" />
57-
<PackageReference Include="System.ComponentModel.Annotations" />
5857
</ItemGroup>
5958
<ItemGroup>
6059
<PackageReference Include="Splat" />
6160
<PackageReference Include="DynamicData" />
61+
</ItemGroup>
62+
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
63+
<PackageReference Include="System.Text.Json" />
64+
<PackageReference Include="System.ComponentModel.Annotations" />
65+
</ItemGroup>
66+
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
67+
<PackageReference Include="System.ComponentModel" />
68+
<PackageReference Include="System.ComponentModel.Annotations" />
69+
<PackageReference Include="System.Diagnostics.Contracts" />
70+
<PackageReference Include="System.Dynamic.Runtime" />
71+
<PackageReference Include="System.Runtime.Serialization.Primitives" />
72+
<PackageReference Include="System.Text.Json" />
73+
</ItemGroup>
74+
<ItemGroup Condition="$(TargetFramework.StartsWith('net6'))">
6275
<PackageReference Include="System.Text.Json" />
6376
</ItemGroup>
6477
<ItemGroup>

0 commit comments

Comments
 (0)