Skip to content

Commit 0b43e9f

Browse files
H-Ashraficlaude
andcommitted
ci: add .NET 10 SDK to build; scope publish to SDK project only
The audit-fix branch left the test project on net10.0 (which is LTS as of Nov 2025), but the workflows only installed .NET 6 + 8, so restore would fail on master. - build.yml: install 10.0.x alongside 6.0.x and 8.0.x so the test project restores and runs. - publish.yml: restore/build/pack the SDK project explicitly instead of the whole repo, so packaging cannot be blocked by an unrelated test-project framework. The SDK itself still only needs 6/8. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 819f225 commit 0b43e9f

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
dotnet-version: |
2020
6.0.x
2121
8.0.x
22+
10.0.x
2223
2324
- name: Restore dependencies
2425
run: dotnet restore

.github/workflows/publish.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,22 @@ jobs:
1515
- name: Setup .NET
1616
uses: actions/setup-dotnet@v4
1717
with:
18-
dotnet-version: 8.0.x
18+
dotnet-version: |
19+
6.0.x
20+
8.0.x
1921
2022
- name: Extract version from tag
2123
id: get_version
2224
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
2325

24-
- name: Restore dependencies
25-
run: dotnet restore
26+
- name: Restore SDK project
27+
run: dotnet restore LicenseManagement.Client.csproj
2628

27-
- name: Build
28-
run: dotnet build --configuration Release --no-restore -p:Version=${{ steps.get_version.outputs.VERSION }}
29+
- name: Build SDK
30+
run: dotnet build LicenseManagement.Client.csproj --configuration Release --no-restore -p:Version=${{ steps.get_version.outputs.VERSION }}
2931

3032
- name: Pack
31-
run: dotnet pack --configuration Release --no-build -p:Version=${{ steps.get_version.outputs.VERSION }} --output ./nupkg
33+
run: dotnet pack LicenseManagement.Client.csproj --configuration Release --no-build -p:Version=${{ steps.get_version.outputs.VERSION }} --output ./nupkg
3234

3335
- name: Push to NuGet
3436
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)