We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e39dff commit 02f1e69Copy full SHA for 02f1e69
1 file changed
.github/workflows/build-samples.yml
@@ -64,6 +64,21 @@ jobs:
64
with:
65
dotnet-version: 9.0.x
66
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
+
82
- name: Cache NuGet packages
83
uses: actions/cache@v5
84
0 commit comments