Skip to content

Commit 4ca8c61

Browse files
SQLAdrianclaude
andcommitted
ci: restore with -r win-x64 to fetch runtime pack
csproj hardcodes <RuntimeIdentifier>win-x64</RuntimeIdentifier>, so sln-level dotnet restore without -r leaves the win-x64 runtime pack undownloaded, and the subsequent --no-restore build fails with NETSDK1112. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent bb6b4f7 commit 4ca8c61

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,19 @@ jobs:
1515
runs-on: windows-latest
1616

1717
steps:
18-
- name: Checkout (with submodules)
18+
- name: Checkout
1919
uses: actions/checkout@v4
20-
with:
21-
submodules: recursive
2220

2321
- name: Setup .NET ${{ env.DOTNET_VERSION }}
2422
uses: actions/setup-dotnet@v4
2523
with:
2624
dotnet-version: ${{ env.DOTNET_VERSION }}
2725

26+
# SQLTriage.csproj hardcodes <RuntimeIdentifier>win-x64</RuntimeIdentifier>,
27+
# so restore must download the win-x64 runtime pack or build fails with
28+
# NETSDK1112. Pass -r win-x64 explicitly.
2829
- name: Restore
29-
run: dotnet restore SQLTriage.sln
30+
run: dotnet restore SQLTriage.sln -r win-x64
3031

3132
- name: Build
3233
run: dotnet build SQLTriage.sln -c Release --no-restore

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ jobs:
4343
echo "tag=${{ github.ref_name }}" >> $env:GITHUB_OUTPUT
4444
4545
# ── 4. Restore ───────────────────────────────────────────────────────
46+
# csproj has <RuntimeIdentifier>win-x64</RuntimeIdentifier> so restore
47+
# must include the win-x64 runtime pack — otherwise NETSDK1112.
4648
- name: Restore NuGet packages
47-
run: dotnet restore SQLTriage.sln
49+
run: dotnet restore SQLTriage.sln -r win-x64
4850

4951
# ── 5. Build ─────────────────────────────────────────────────────────
5052
- name: Build

0 commit comments

Comments
 (0)