Skip to content

Commit

Permalink
Drop support of Dotnet 6, use Dotnet 9 instead (#613)
Browse files Browse the repository at this point in the history
* change from net6 to net9

* ignore warnings to extract strings to static fields, unnecessary

* update test.yml dotnet-version
  • Loading branch information
danFbach authored Jan 21, 2025
1 parent 5f9549f commit 295b15c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"
dotnet-version: "9.0.x"
- name: Install dependencies
run: dotnet restore
- name: Build
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "6.0.x"
dotnet-version: "9.0.x"
- name: Check with dotnet-format
run: dotnet format --version
- name: Check with dotnet-format
Expand Down
10 changes: 9 additions & 1 deletion tests/Meilisearch.Tests/Meilisearch.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<NoWarn>1701;1702;CA1861</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<NoWarn>1701;1702;CA1861</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
Expand Down

0 comments on commit 295b15c

Please sign in to comment.