Skip to content

Commit d06394e

Browse files
committed
Pin C# CI to .NET 8 SDK
Recent ubuntu-latest image updates changed toolchain selection in the C# workflow. Even with setup-dotnet requesting 8.0.x, dotnet test can run under SDK 10 and fail with MSB3030 when apphost is missing. Add a csharp/global.json to pin SDK resolution to .NET 8 and keep test build behavior stable across runner image changes. Also print dotnet version and installed SDKs in CI logs so future drift is immediately visible.
1 parent 9f22faf commit d06394e

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/csharp.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ jobs:
3131
with:
3232
dotnet-version: "8.0.x"
3333

34+
- name: Verify .NET SDK
35+
run: |
36+
dotnet --version
37+
dotnet --list-sdks
38+
3439
- name: Generate bindings and binaries (unix)
3540
if: matrix.os != 'windows-latest'
3641
run: bash ./scripts/generate_bindings.sh

payjoin-ffi/csharp/global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "8.0.100",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)