Skip to content

Commit

Permalink
#3792 Leverage framework for dependencies (#3800)
Browse files Browse the repository at this point in the history
<!-- 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
  • Loading branch information
thompson-tomo committed May 18, 2024
1 parent ebf7dcc commit 97f77fc
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/ReactiveUI/ReactiveUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<Compile Include="Platforms\netstandard2.0\**\*.cs" />
<Compile Include="Platforms\shared\**\*.cs" />
<PackageReference Include="System.ComponentModel" />
<PackageReference Include="System.ComponentModel.Annotations" />
<PackageReference Include="System.Diagnostics.Contracts" />
<PackageReference Include="System.Dynamic.Runtime" />
<PackageReference Include="System.Runtime.Serialization.Primitives" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.EndsWith('-ios')) or $(TargetFramework.EndsWith('-maccatalyst'))">
<Compile Include="Platforms\apple-common\**\*.cs" />
Expand All @@ -54,11 +49,24 @@
</ItemGroup>
<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')) ">
<Compile Include="Platforms\net\**\*.cs" />
<PackageReference Include="System.ComponentModel.Annotations" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Splat" />
<PackageReference Include="DynamicData" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net4'))">
<PackageReference Include="System.Text.Json" />
<PackageReference Include="System.ComponentModel.Annotations" />
</ItemGroup>
<ItemGroup Condition=" $(TargetFramework.StartsWith('netstandard')) ">
<PackageReference Include="System.ComponentModel" />
<PackageReference Include="System.ComponentModel.Annotations" />
<PackageReference Include="System.Diagnostics.Contracts" />
<PackageReference Include="System.Dynamic.Runtime" />
<PackageReference Include="System.Runtime.Serialization.Primitives" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework.StartsWith('net6'))">
<PackageReference Include="System.Text.Json" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 97f77fc

Please sign in to comment.