This is an automated email from the ASF dual-hosted git repository.

hsluoyz pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/casbin-Casbin.NET-ef-adapter.git


The following commit(s) were added to refs/heads/master by this push:
     new e9f8990  feat: target net462 and netstandard2.1 and upgrade 
EntityFramework to 6.5.2
e9f8990 is described below

commit e9f89907bd31e7ac28c5722ca8b8f6acd90a2dd7
Author: Yang Luo <[email protected]>
AuthorDate: Wed Oct 7 11:13:54 2026 +0800

    feat: target net462 and netstandard2.1 and upgrade EntityFramework to 6.5.2
---
 .github/workflows/gitub-actions-build.yml      | 22 ++++++----------------
 .github/workflows/gitub-actions-release.yml    | 24 +++++++++++-------------
 EF-Adapter.UnitTest/EF-Adapter.UnitTest.csproj | 12 ++++++------
 EF-Adapter/EF-Adapter.csproj                   |  4 ++--
 4 files changed, 25 insertions(+), 37 deletions(-)

diff --git a/.github/workflows/gitub-actions-build.yml 
b/.github/workflows/gitub-actions-build.yml
index 98bd943..60456f8 100644
--- a/.github/workflows/gitub-actions-build.yml
+++ b/.github/workflows/gitub-actions-build.yml
@@ -32,27 +32,22 @@ jobs:
     - name: Check tags
       run: git tag -l -n
 
-    - name: Setup dotnet 3.1.x sdk
+    - name: Setup .NET 10.0.x SDK
       uses: actions/setup-dotnet@v4
       with:
-        dotnet-version: 3.1.x
-
-    - name: Setup .NET 5.0.x SDK
-      uses: actions/setup-dotnet@v4
-      with:
-        dotnet-version: 5.0.x
+        dotnet-version: 10.0.x
 
     - name: Check .NET info
       run: dotnet --info
 
     - name: Install dependencies
-      run: nuget restore
+      run: dotnet restore
 
     - name: Build solution
       run: dotnet build -c Release --no-restore
 
     - name: Test solution
-      run: dotnet test -c Release --no-build --no-restore --verbosity normal 
/p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:CoverletOutput=../
+      run: dotnet test -c Release --no-build --no-restore --verbosity normal 
-m:1 /p:CollectCoverage=true /p:CoverletOutputFormat=opencover 
/p:CoverletOutput=../
     
     - name: Upload coverage
       if: github.repository_owner == 'casbin-net' && github.ref == 
'refs/heads/master'
@@ -68,17 +63,12 @@ jobs:
         $CommitMessage = git show -s --pretty=format:"%s";
         echo "Coomit message is: $CommitMessage";
 
-        ./tools/csmacnz.Coveralls --opencover -i coverage.net452.opencover.xml 
--repoToken $env:COVERALLS_REPO_TOKEN `
-        --commitId $env:SHA --commitBranch $env:REF --commitAuthor 
"$CommitAuthor" `
-        --commitEmail "$CommitAuthorEmail" --commitMessage "$CommitMessage" `
-        --jobId $env:RUN_NUMBER --serviceName github-actions  
--useRelativePaths;
-
-        ./tools/csmacnz.Coveralls --opencover -i coverage.net461.opencover.xml 
--repoToken $env:COVERALLS_REPO_TOKEN `
+        ./tools/csmacnz.Coveralls --opencover -i coverage.net48.opencover.xml 
--repoToken $env:COVERALLS_REPO_TOKEN `
         --commitId $env:SHA --commitBranch $env:REF --commitAuthor 
"$CommitAuthor" `
         --commitEmail "$CommitAuthorEmail" --commitMessage "$CommitMessage" `
         --jobId $env:RUN_NUMBER --serviceName github-actions  
--useRelativePaths;
 
-        ./tools/csmacnz.Coveralls --opencover -i 
coverage.netcoreapp3.1.opencover.xml --repoToken $env:COVERALLS_REPO_TOKEN `
+        ./tools/csmacnz.Coveralls --opencover -i 
coverage.net10.0.opencover.xml --repoToken $env:COVERALLS_REPO_TOKEN `
         --commitId $env:SHA --commitBranch $env:REF --commitAuthor 
"$CommitAuthor" `
         --commitEmail "$CommitAuthorEmail" --commitMessage "$CommitMessage" `
         --jobId $env:RUN_NUMBER --serviceName github-actions  
--useRelativePaths;
diff --git a/.github/workflows/gitub-actions-release.yml 
b/.github/workflows/gitub-actions-release.yml
index d209c7c..b73edfa 100644
--- a/.github/workflows/gitub-actions-release.yml
+++ b/.github/workflows/gitub-actions-release.yml
@@ -14,34 +14,32 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v2
+      uses: actions/checkout@v4
       with:
         fetch-depth: 0
 
-    - name: Setup dotnet 3.1.x sdk
-      uses: actions/setup-dotnet@v1
+    - name: Setup .NET 10.0.x SDK
+      uses: actions/setup-dotnet@v4
       with:
-        dotnet-version: 3.1
-        
-    - name: Setup .NET 5.0.x SDK
-      uses: actions/setup-dotnet@v1
-      with:
-        dotnet-version: 5.0.x
+        dotnet-version: 10.0.x
 
     - name: Check .NET info
       run: dotnet --info
 
     - name: Install dependencies
-      run: nuget restore
+      run: dotnet restore
+
+    - name: Get version from tag
+      run: echo "VERSION=$('${{ github.ref_name }}'.TrimStart('v'))" >> 
$env:GITHUB_ENV
 
     - name: Build solution
-      run: dotnet build -c Release --no-restore
+      run: dotnet build -c Release --no-restore /p:Version=$env:VERSION
 
     - name: Test solution
-      run: dotnet test -c Release --no-build --no-restore --verbosity normal
+      run: dotnet test -c Release --no-build --no-restore --verbosity normal 
-m:1
 
     - name: Pack package
-      run: dotnet pack -c Release -o packages --no-build;
+      run: dotnet pack -c Release -o packages --no-build 
/p:Version=$env:VERSION;
 
     - name: Push nuget package
       run: dotnet nuget push .\packages\*.nupkg -s nuget.org -k 
$env:NUGET_API_TOKEN --skip-duplicate
diff --git a/EF-Adapter.UnitTest/EF-Adapter.UnitTest.csproj 
b/EF-Adapter.UnitTest/EF-Adapter.UnitTest.csproj
index 1316e04..3270b5b 100644
--- a/EF-Adapter.UnitTest/EF-Adapter.UnitTest.csproj
+++ b/EF-Adapter.UnitTest/EF-Adapter.UnitTest.csproj
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
-    <TargetFrameworks>net452;net461;netcoreapp3.1</TargetFrameworks>
+    <TargetFrameworks>net48;net10.0</TargetFrameworks>
     <RootNamespace>EF_Adapter.UnitTest</RootNamespace>
 
     <IsPackable>false</IsPackable>
@@ -9,15 +9,15 @@
 
   <ItemGroup>
     <PackageReference Include="Casbin.NET" Version="1.3.0" />
-    <PackageReference Include="coverlet.msbuild" Version="3.0.2">
+    <PackageReference Include="coverlet.msbuild" Version="6.0.4">
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; 
buildtransitive</IncludeAssets>
     </PackageReference>
-    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
-    <PackageReference Include="Moq" Version="4.16.0" />
+    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
+    <PackageReference Include="Moq" Version="4.20.72" />
     <PackageReference Include="System.ComponentModel.Annotations" 
Version="5.0.0" />
-    <PackageReference Include="xunit" Version="2.4.1" />
-    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
+    <PackageReference Include="xunit" Version="2.9.3" />
+    <PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
       <PrivateAssets>all</PrivateAssets>
       <IncludeAssets>runtime; build; native; contentfiles; analyzers; 
buildtransitive</IncludeAssets>
     </PackageReference>
diff --git a/EF-Adapter/EF-Adapter.csproj b/EF-Adapter/EF-Adapter.csproj
index 127b1ce..c148feb 100644
--- a/EF-Adapter/EF-Adapter.csproj
+++ b/EF-Adapter/EF-Adapter.csproj
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
-    <TargetFrameworks>net45;net461;netstandard2.1</TargetFrameworks>
+    <TargetFrameworks>net462;netstandard2.1</TargetFrameworks>
     <RootNamespace>Casbin.NET.Adapter.EF</RootNamespace>
   </PropertyGroup>
 
@@ -19,7 +19,7 @@
 
   <ItemGroup>
     <PackageReference Include="Casbin.NET" Version="1.3.0" />
-    <PackageReference Include="EntityFramework" Version="6.4.4" />
+    <PackageReference Include="EntityFramework" Version="6.5.2" />
   </ItemGroup>
 
   <ItemGroup>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to