Skip to content

Commit 295b15c

Browse files
authored
Drop support of Dotnet 6, use Dotnet 9 instead (#613)
* change from net6 to net9 * ignore warnings to extract strings to static fields, unnecessary * update test.yml dotnet-version
1 parent 5f9549f commit 295b15c

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup .NET Core
2222
uses: actions/setup-dotnet@v4
2323
with:
24-
dotnet-version: "6.0.x"
24+
dotnet-version: "9.0.x"
2525
- name: Install dependencies
2626
run: dotnet restore
2727
- name: Build
@@ -39,7 +39,7 @@ jobs:
3939
- name: Setup .NET Core
4040
uses: actions/setup-dotnet@v4
4141
with:
42-
dotnet-version: "6.0.x"
42+
dotnet-version: "9.0.x"
4343
- name: Check with dotnet-format
4444
run: dotnet format --version
4545
- name: Check with dotnet-format

tests/Meilisearch.Tests/Meilisearch.Tests.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

9+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
10+
<NoWarn>1701;1702;CA1861</NoWarn>
11+
</PropertyGroup>
12+
13+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
14+
<NoWarn>1701;1702;CA1861</NoWarn>
15+
</PropertyGroup>
16+
917
<ItemGroup>
1018
<PackageReference Include="FluentAssertions" Version="7.0.0" />
1119
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />

0 commit comments

Comments
 (0)