Skip to content

Commit

Permalink
Harmonize dependencies against NET 8
Browse files Browse the repository at this point in the history
* drop NET 6 support which is EOL
* make 8.0.x series default minimal
* don't require System.Text.Json when it's built-in
  • Loading branch information
lahma committed Dec 3, 2024
1 parent 3606745 commit 68243b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
runs-on: ubuntu-latest

steps:

- uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0
- uses: actions/checkout@v4

- name: Restore
Expand Down
24 changes: 9 additions & 15 deletions DeviceDetector.NET/DeviceDetector.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net462;net6.0;net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net462;net8.0;net9.0</TargetFrameworks>
<RootNamespace>DeviceDetectorNET</RootNamespace>
<Version>6.4.1</Version>
<Authors>totpero</Authors>
Expand Down Expand Up @@ -216,24 +216,18 @@

<ItemGroup>
<PackageReference Include="LiteDB" Version="5.0.21" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" />
<PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="YamlDotNet" Version="16.2.1" />
</ItemGroup>

<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<PackageReference Include="System.Text.Json" Version="8.0.5" />
</ItemGroup>

<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
<None Include="..\logo.jpg">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\README.md">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
<None Include="..\LICENSE" Pack="True" PackagePath="" />
<None Include="..\logo.jpg" Pack="True" PackagePath="" />
<None Include="..\README.md" Pack="True" PackagePath="" />
</ItemGroup>

</Project>

0 comments on commit 68243b7

Please sign in to comment.