Skip to content

Commit 97f77fc

Browse files
#3792 Leverage framework for dependencies (#3800)
<!-- Please be sure to read the [Contribute](https://github.com/reactiveui/reactiveui#contribute) section of the README --> **What kind of change does this PR introduce?** update **What is the current behavior?** Packages are the same for all TFM's **What is the new behavior?** Less dependencies are included for net 6+ due to them being available as part of the framework **What might this PR break?** n/a **Other information**: closes #3792
1 parent ebf7dcc commit 97f77fc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/ReactiveUI/ReactiveUI.csproj

+14-6
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
2626
<Compile Include="Platforms\netstandard2.0\**\*.cs" />
2727
<Compile Include="Platforms\shared\**\*.cs" />
28-
<PackageReference Include="System.ComponentModel" />
29-
<PackageReference Include="System.ComponentModel.Annotations" />
30-
<PackageReference Include="System.Diagnostics.Contracts" />
31-
<PackageReference Include="System.Dynamic.Runtime" />
32-
<PackageReference Include="System.Runtime.Serialization.Primitives" />
3328
</ItemGroup>
3429
<ItemGroup Condition="$(TargetFramework.EndsWith('-ios')) or $(TargetFramework.EndsWith('-maccatalyst'))">
3530
<Compile Include="Platforms\apple-common\**\*.cs" />
@@ -54,11 +49,24 @@
5449
</ItemGroup>
5550
<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')) ">
5651
<Compile Include="Platforms\net\**\*.cs" />
57-
<PackageReference Include="System.ComponentModel.Annotations" />
5852
</ItemGroup>
5953
<ItemGroup>
6054
<PackageReference Include="Splat" />
6155
<PackageReference Include="DynamicData" />
56+
</ItemGroup>
57+
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
58+
<PackageReference Include="System.Text.Json" />
59+
<PackageReference Include="System.ComponentModel.Annotations" />
60+
</ItemGroup>
61+
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
62+
<PackageReference Include="System.ComponentModel" />
63+
<PackageReference Include="System.ComponentModel.Annotations" />
64+
<PackageReference Include="System.Diagnostics.Contracts" />
65+
<PackageReference Include="System.Dynamic.Runtime" />
66+
<PackageReference Include="System.Runtime.Serialization.Primitives" />
67+
<PackageReference Include="System.Text.Json" />
68+
</ItemGroup>
69+
<ItemGroup Condition="$(TargetFramework.StartsWith('net6'))">
6270
<PackageReference Include="System.Text.Json" />
6371
</ItemGroup>
6472
<ItemGroup>

0 commit comments

Comments
 (0)