Skip to content

Commit 02f1e69

Browse files
committed
Added a global net9.0 SDK json
1 parent 3e39dff commit 02f1e69

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/build-samples.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,21 @@ jobs:
6464
with:
6565
dotnet-version: 9.0.x
6666

67+
# Runners ship a newer SDK (e.g. 10.x); without this, dotnet picks the
68+
# highest installed SDK. Pin to 9.x for the whole repo during CI only.
69+
- name: Pin .NET SDK (CI only)
70+
shell: pwsh
71+
run: |
72+
@'
73+
{
74+
"sdk": {
75+
"version": "9.0.100",
76+
"rollForward": "latestFeature"
77+
}
78+
}
79+
'@ | Set-Content -Path global.json
80+
dotnet --version
81+
6782
- name: Cache NuGet packages
6883
uses: actions/cache@v5
6984
with:

0 commit comments

Comments
 (0)