From 0257df790291f94e2142e28643da889dc42076a1 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 14:00:32 +0000 Subject: [PATCH] ci: pin .NET SDK to 10.x with global.json Without a global.json the host picks the newest installed SDK, so a runner image that ships SDK 11 would build with it regardless of setup-dotnet's 10.0.x, and new analyzer warnings fail the build (TreatWarningsAsErrors). latestFeature keeps any 10.0 feature band >= 100 and refuses 11. Co-Authored-By: Claude Opus 5.5 --- global.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 global.json diff --git a/global.json b/global.json new file mode 100644 index 0000000..512142d --- /dev/null +++ b/global.json @@ -0,0 +1,6 @@ +{ + "sdk": { + "version": "10.0.100", + "rollForward": "latestFeature" + } +}