Skip to content

Commit 6646545

Browse files
authored
feat: Support .NET 9.0 (#76)
1 parent efaccc6 commit 6646545

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
6.0.x
3131
7.0.x
3232
8.0.x
33+
9.0.x
3334
include-prerelease: true
3435

3536
- name: Check .NET info
@@ -69,7 +70,7 @@ jobs:
6970
7071
- name: Upload test results artefacts
7172
if: github.repository_owner == 'casbin-net' && github.event_name == 'push'
72-
uses: actions/upload-artifact@v1.0.0
73+
uses: actions/upload-artifact@v4
7374
with:
7475
name: "drop-ci-test-results"
7576
path: './test-results'
@@ -115,6 +116,7 @@ jobs:
115116
6.0.x
116117
7.0.x
117118
8.0.x
119+
9.0.x
118120
include-prerelease: true
119121

120122
- name: Check .NET info
@@ -139,7 +141,7 @@ jobs:
139141
dotnet pack -c Release -o packages /p:PackageVersion=$PackageVersion /p:Version=$Version;
140142
141143
- name: Upload packages artefacts
142-
uses: actions/upload-artifact@v1.0.0
144+
uses: actions/upload-artifact@v4
143145
with:
144146
name: "drop-ci-build-packages"
145147
path: './packages'

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
6.0.x
3232
7.0.x
3333
8.0.x
34+
9.0.x
3435
include-prerelease: true
3536

3637
- name: Check .NET info
@@ -68,7 +69,7 @@ jobs:
6869
}
6970
7071
- name: Upload test results artefacts
71-
uses: actions/upload-artifact@v1.0.0
72+
uses: actions/upload-artifact@v4
7273
with:
7374
name: "drop-ci-test-results"
7475
path: './test-results'
@@ -114,6 +115,7 @@ jobs:
114115
6.0.x
115116
7.0.x
116117
8.0.x
118+
9.0.x
117119
include-prerelease: true
118120

119121
- name: Check .NET info
@@ -134,7 +136,7 @@ jobs:
134136
dotnet pack -c Release -o packages /p:PackageVersion=$Version /p:Version=$Version;
135137
136138
- name: Upload packages artefacts
137-
uses: actions/upload-artifact@v1.0.0
139+
uses: actions/upload-artifact@v4
138140
with:
139141
name: "drop-ci-packages"
140142
path: './packages'

Casbin.Persist.Adapter.EFCore.UnitTest/Casbin.Persist.Adapter.EFCore.UnitTest.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<LangVersion>11</LangVersion>
77
</PropertyGroup>
@@ -20,6 +20,11 @@
2020
</PackageReference>
2121
</ItemGroup>
2222

23+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
24+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="9.0.0" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
26+
</ItemGroup>
27+
2328
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2429
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="8.0.0" />
2530
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.0" />

Casbin.Persist.Adapter.EFCore/Casbin.Persist.Adapter.EFCore.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;</TargetFrameworks>
4+
<TargetFrameworks>net9.0;net8.0;net7.0;net6.0;net5.0;netcoreapp3.1;</TargetFrameworks>
55
<LangVersion>9.0</LangVersion>
66
</PropertyGroup>
77

@@ -20,6 +20,11 @@
2020
<PackageReference Include="Casbin.NET" Version="2.7.0" />
2121
</ItemGroup>
2222

23+
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
24+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
25+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="9.0.0" />
26+
</ItemGroup>
27+
2328
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
2429
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.0" />
2530
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="8.0.0" />

0 commit comments

Comments
 (0)