diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 51a720f..4a511e3 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -28,6 +28,12 @@ jobs:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
+ with:
+ dotnet-version: |
+ 10.0.x
+ 11.0.x
+ - name: Build .NET 10 library targets
+ run: dotnet build RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj --configuration Release --framework net10.0
- name: Run tests
run: dotnet test --configuration Release
@@ -39,9 +45,13 @@ jobs:
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
- # Install the .NET SDK indicated in the global.json file
+ # Install both SDKs required to build and pack the multi-targeted libraries.
- name: Setup .NET
uses: actions/setup-dotnet@v6
+ with:
+ dotnet-version: |
+ 10.0.x
+ 11.0.x
# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} /p:PackageVersion=${{github.ref_name}}
@@ -56,8 +66,7 @@ jobs:
deploy:
# Publish only when creating a GitHub Release
- # https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
- # You can update this logic if you want to manage releases differently
+ # https://github.com/RuntimeApps/RuntimeApps.Authentication/releases
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [ run_test,create_nuget ]
@@ -70,9 +79,11 @@ jobs:
name: nuget
path: ${{ env.NuGetDirectory }}
- # Install the .NET SDK indicated in the global.json file
- - name: Setup .NET Core
+ # Install .NET SDK for the dotnet NuGet CLI.
+ - name: Setup .NET
uses: actions/setup-dotnet@v6
+ with:
+ dotnet-version: 11.0.x
# Exchange the OIDC token for a short-lived NuGet API key
- name: NuGet login (OIDC)
@@ -82,7 +93,6 @@ jobs:
user: ${{ secrets.NUGET_USER }} # nuget.org profile name, NOT your email
# Publish all NuGet packages to NuGet.org
- # Use --skip-duplicate to prevent errors if a package with the same version already exists.
- # If you retry a failed workflow, already published packages will be skipped without error.
+ # Use --skip-duplicate to prevent errors if the workflow is retried.
- name: Publish NuGet package
run: dotnet nuget push "${{ env.NuGetDirectory }}/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key "${{ steps.login.outputs.NUGET_API_KEY }}"
diff --git a/RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj b/RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj
index 8244e9e..28998aa 100644
--- a/RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj
+++ b/RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj
@@ -1,17 +1,22 @@
- net10.0
+ net10.0;net11.0
enable
+
+
+
+
-
-
+
+
+
diff --git a/RuntimeApps.Authentication/RuntimeApps.Authentication.csproj b/RuntimeApps.Authentication/RuntimeApps.Authentication.csproj
index b4101c6..fa0b30f 100644
--- a/RuntimeApps.Authentication/RuntimeApps.Authentication.csproj
+++ b/RuntimeApps.Authentication/RuntimeApps.Authentication.csproj
@@ -1,12 +1,15 @@
- net10.0
+ net10.0;net11.0
enable
+
+
+
@@ -14,4 +17,12 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
diff --git a/Samples/RuntimeApps.Authentication.Sample.ClaimAuthorize/RuntimeApps.Authentication.Sample.ClaimAuthorize.csproj b/Samples/RuntimeApps.Authentication.Sample.ClaimAuthorize/RuntimeApps.Authentication.Sample.ClaimAuthorize.csproj
index 4ac9ca3..e3ed58b 100644
--- a/Samples/RuntimeApps.Authentication.Sample.ClaimAuthorize/RuntimeApps.Authentication.Sample.ClaimAuthorize.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.ClaimAuthorize/RuntimeApps.Authentication.Sample.ClaimAuthorize.csproj
@@ -1,20 +1,17 @@
- net10.0
+ net11.0
enable
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
+
diff --git a/Samples/RuntimeApps.Authentication.Sample.CookieAuthentication/RuntimeApps.Authentication.Sample.CookieAuthentication.csproj b/Samples/RuntimeApps.Authentication.Sample.CookieAuthentication/RuntimeApps.Authentication.Sample.CookieAuthentication.csproj
index e985da1..035d58b 100644
--- a/Samples/RuntimeApps.Authentication.Sample.CookieAuthentication/RuntimeApps.Authentication.Sample.CookieAuthentication.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.CookieAuthentication/RuntimeApps.Authentication.Sample.CookieAuthentication.csproj
@@ -1,21 +1,18 @@
- net10.0
+ net11.0
enable
enable
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
+
diff --git a/Samples/RuntimeApps.Authentication.Sample.CustomClaim/RuntimeApps.Authentication.Sample.CustomClaim.csproj b/Samples/RuntimeApps.Authentication.Sample.CustomClaim/RuntimeApps.Authentication.Sample.CustomClaim.csproj
index 845df8a..f70d41f 100644
--- a/Samples/RuntimeApps.Authentication.Sample.CustomClaim/RuntimeApps.Authentication.Sample.CustomClaim.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.CustomClaim/RuntimeApps.Authentication.Sample.CustomClaim.csproj
@@ -1,21 +1,18 @@
- net10.0
+ net11.0
enable
enable
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
+
diff --git a/Samples/RuntimeApps.Authentication.Sample.CustomModel/RuntimeApps.Authentication.Sample.CustomModel.csproj b/Samples/RuntimeApps.Authentication.Sample.CustomModel/RuntimeApps.Authentication.Sample.CustomModel.csproj
index 0846ff9..27cae5a 100644
--- a/Samples/RuntimeApps.Authentication.Sample.CustomModel/RuntimeApps.Authentication.Sample.CustomModel.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.CustomModel/RuntimeApps.Authentication.Sample.CustomModel.csproj
@@ -1,20 +1,17 @@
- net10.0
+ net11.0
enable
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
diff --git a/Samples/RuntimeApps.Authentication.Sample.CustomStore/RuntimeApps.Authentication.Sample.CustomStore.csproj b/Samples/RuntimeApps.Authentication.Sample.CustomStore/RuntimeApps.Authentication.Sample.CustomStore.csproj
index 7cf1877..74d96e2 100644
--- a/Samples/RuntimeApps.Authentication.Sample.CustomStore/RuntimeApps.Authentication.Sample.CustomStore.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.CustomStore/RuntimeApps.Authentication.Sample.CustomStore.csproj
@@ -1,15 +1,12 @@
-
+
- net10.0
+ net11.0
enable
-
-
-
diff --git a/Samples/RuntimeApps.Authentication.Sample.CustomValidation/RuntimeApps.Authentication.Sample.CustomValidation.csproj b/Samples/RuntimeApps.Authentication.Sample.CustomValidation/RuntimeApps.Authentication.Sample.CustomValidation.csproj
index e062f1d..56cde1a 100644
--- a/Samples/RuntimeApps.Authentication.Sample.CustomValidation/RuntimeApps.Authentication.Sample.CustomValidation.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.CustomValidation/RuntimeApps.Authentication.Sample.CustomValidation.csproj
@@ -1,17 +1,14 @@
- net10.0
+ net11.0
enable
enable
-
-
-
-
+
diff --git a/Samples/RuntimeApps.Authentication.Sample.RoleAuthorize/RuntimeApps.Authentication.Sample.RoleAuthorize.csproj b/Samples/RuntimeApps.Authentication.Sample.RoleAuthorize/RuntimeApps.Authentication.Sample.RoleAuthorize.csproj
index 4ac9ca3..e3ed58b 100644
--- a/Samples/RuntimeApps.Authentication.Sample.RoleAuthorize/RuntimeApps.Authentication.Sample.RoleAuthorize.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample.RoleAuthorize/RuntimeApps.Authentication.Sample.RoleAuthorize.csproj
@@ -1,20 +1,17 @@
- net10.0
+ net11.0
enable
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
+
diff --git a/Samples/RuntimeApps.Authentication.Sample/RuntimeApps.Authentication.Sample.csproj b/Samples/RuntimeApps.Authentication.Sample/RuntimeApps.Authentication.Sample.csproj
index d524690..d0d8bc3 100644
--- a/Samples/RuntimeApps.Authentication.Sample/RuntimeApps.Authentication.Sample.csproj
+++ b/Samples/RuntimeApps.Authentication.Sample/RuntimeApps.Authentication.Sample.csproj
@@ -1,17 +1,14 @@
- net10.0
+ net11.0
enable
-
-
-
-
+
diff --git a/Tests/RuntimeApps.Authentication.Test/RuntimeApps.Authentication.Test.csproj b/Tests/RuntimeApps.Authentication.Test/RuntimeApps.Authentication.Test.csproj
index 7dd1a73..bbe8829 100644
--- a/Tests/RuntimeApps.Authentication.Test/RuntimeApps.Authentication.Test.csproj
+++ b/Tests/RuntimeApps.Authentication.Test/RuntimeApps.Authentication.Test.csproj
@@ -1,7 +1,7 @@
- net10.0
+ net11.0
enable
Exe
false
@@ -11,10 +11,7 @@
-
-
-
-
+